コード例 #1
0
 public void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.CompareTag("Poop"))
     {
         isPoop  = true;
         collide = other;
     }
     if (other.gameObject.CompareTag("bonus") && !player.CanHold() && !Personaje.IsPoopInGame)
     {
         Destroy(other.gameObject);
         player.CreateNewPoop(this.gameObject);
     }
 }