// if collider is marked as trigger we can no longer use onCollisionEnter() because it can no longer collide. It is now a trigger, so we use onTriggerEnter() void OnTriggerEnter(Collider collider) { if (collider.name == "Player") { gameManager.CompleteLevel(); } }
void OnTriggerEnter2D() { if (PS.score >= 30) { gameManage.CompleteLevel(); } else { if ((TT != null) && (GOS != null)) { TT.notEnoughMicroship = true; GOS.Lose(); } } }
void OnTriggerEnter() { gameManager.CompleteLevel(); }
private void OnTriggerEnter(Collider other) { gameManage.CompleteLevel(); }
private void OnTriggerEnter(Collider target) { gameManager.CompleteLevel(); }