Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void DealDamage()
- {
- if (health != 0)
- {
- health--;
- }
- else
- {
- Destroy(this.gameObject);
- }
- spriteRenderer.material.color = Color.Lerp(wall_color, originalColor, health / health_max);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement