Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
void OnCollisionEnter2D(Collision2D collision) { if (collision.gameObject.name == "Player_Controller") { if (player.isDead == false) { spiked.Play(); player.isDead = true; player.KillPlayer(); } } }