Exemplo n.º 1
0
    /// <summary>
    /// Wait a few seconds after game over to resume.
    /// </summary>
    private IEnumerator WaitAfterResume()
    {
        yield return(waitAfterResumeWaitForSeconds);

        snakeTailSpawner.InvincibilityPowerupActive(reviveInvincibilityDuration);
        snakeCollision.InvincibilityPowerupActive(reviveInvincibilityDuration);
        snakeMovement.Resume();
        snakeCollision.Resume();
        snakeTailSpawner.Resume();
    }
Exemplo n.º 2
0
 public void Go() {
     IsActive = true;
     myMovement.Resume();
 }