Ejemplo n.º 1
0
 protected void OnCollisionEnter(Collision collision)
 {
     // Hit the player!
     if (!dead)
     {
         if (collision.gameObject.tag == "Player")
         {
             playerscript.GetHit(Damage);
             Jump();
         }
     }
 }