Exemplo n.º 1
0
 private void OnTriggerEnter2D(Collider2D collision)
 {
     if (manager != null)
     {
         manager.NextRoom();
     }
     else
     {
         print("Bad touch! No touchy!");
         GameObject obj = collision.gameObject.CompareTag("GHOST") ? collision.transform.parent.gameObject : collision.gameObject;
         CmdCallNextRoon(obj);
     }
 }