private void FixedUpdate() { if (isTrigger) { timeTrigger++; } if (timeTrigger == 60) { timeTrigger = 0; isTrigger = false; gameObject.GetComponent <PlayerMove>().isTrigger = false; } if (isGameOver == true) { gameOverTime += Time.deltaTime; mainControl.DeleteAI(); if (gameOverTime >= gameOverTimeLimit) { Destroy(gameObject); mainControl.Lose(); } } }