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