void OnTriggerEnter2D(Collider2D coll) { if (coll.CompareTag("Player")) { timer.TimerStop(); } }
void OnTriggerEnter2D(Collider2D coll) { if (coll.CompareTag("AI_Player")) { has_won = true; Invoke("Lose", 0.1f); } if (coll.CompareTag("Player")) { timer.TimerStop(); if (has_won == false) { has_won = true; Invoke("Win", 0.5f); } } }