Example #1
0
 private void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.gameObject.tag == "Player")
     {
         CenterController centerController = collision.gameObject.GetComponent <CenterController>();
         centerController.dead();
     }
     if (collision.gameObject.tag == "Monster")
     {
     }
 }