Example #1
0
    public void GameComplete()
    {
        if (MatchFinished != null)
        {
            MatchFinished();
        }

        RopeController.DestroyAllRopes();

        ninjaBodies = ninjaPicker.GetBodies(4);

        GameState = State.PlayerScreen;
        BloodParticle.DestroyAll();
        currentLevel.gameObject.SetActive(false);
        participatingNinjas.Clear();
    }
Example #2
0
    public void StartRound()
    {
        foreach (var level in levels)
        {
            level.gameObject.SetActive(false);
        }
        currentLevel.gameObject.SetActive(true);

        RopeController.DestroyAllRopes();

        GameUiManager.Instance.HideAll();
        currentScoresManager.Spawner = currentLevel.SpawnManager;

        if (RoundStart != null)
        {
            RoundStart();
        }
        GameState = State.Playing;

        audioSource.PlayOneShot(start);
    }