Esempio n. 1
0
 private void OnTriggerStay2D(Collider2D collision)
 {
     Debug.Log(player.onPlatform);
     if (collision.gameObject.name == "player" && player.onPlatform == false)
     {
         player.hit(15 * Time.deltaTime);
     }
 }