示例#1
0
 private void OnCollisionEnter(Collision collision)
 {
     if (!legs.getPlayerKicked())
     {
         if (collision.gameObject.GetComponent <PlayerStats>() != null)
         {
             legs.Kick();
             exists        = false;
             cooldowntimer = 5;
             GetComponent <BoxCollider>().enabled = false;
         }
     }
 }