Exemple #1
0
    public void PlayerWon(EndOfLevelArena callback)
    {
        TriggerPlayers(false);

        // Play Fusion Sequence and then
        DataManager.MakeItRain <FusionSequence>(DataKeys.FUSION_SEQUENCE)
        .MainSequence()
        .Play()
        .OnComplete(() => DataManager.MakeItRain <SceneTransition>(DataKeys.SCENE_TRANSITION).NextLevelWithDelay());

        _callback = callback;
    }
Exemple #2
0
    public void Respawn()
    {
        uiAnimator.SetTrigger("Reset");

        _playerA.transform.position = spawnA.position;
        _playerB.transform.position = spawnB.position;
        _playerA.gameObject.SetActive(true);
        _playerB.gameObject.SetActive(true);
        middle.SetActive(true);

        if (_callback != null)
        {
            _callback.cameraChange.swapback = true;
            _callback = null;
        }

        DataManager.MakeItRain <CountdownStartGame>(DataKeys.COUNTDOWN_STARTGAME).SetUpCountdown();
    }