Ejemplo n.º 1
0
 private void OnCollisionEnter(Collision collision)
 {
     //if(collision.gameObject.CompareTag("Guardian"))
     if (collision.gameObject.name == "Guardian")
     {
         //Animation
         Debug.Log("hit");
         Publish publish = Publisher.GetInstance();
         publish.Notify(ActorState.DEATH, 0, null);
     }
 }