50-Shield Strength Implementation
In this post, the shield strength will be implemented:
- Visualize the strength of the shield through color changing of the
- Allow for 3 hits on the shield to accommodate visualization
The above requirement can be translated into the following actions:
- Assign a strength value to the shield
- Get a handle to the ShieldVisualizer renderer and adjust its color according to the strength value (using Switch statement). To change color, we can use “gameObject.renderer.material.color = Color.red” or similar.