Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- public class DestructibleCover : MonoBehaviour, IDamageable
- {
- public void Break()
- {
- Destroy(gameObject);
- }
- public void Damage(float damageAmount)
- {
- Break();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment