using System; using UnityEngine; namespace DestroyIt { [Serializable] public class HitEffect { /// The type of weapon the object was hit by. (Bullet, Slashing, Cannonball, etc) public HitBy hitBy; /// The effect to play when hit by this type of weapon. public GameObject effect; } }