Beispiel #1
0
    public void StartCinematic(Cinematic cinematic)
    {
        EnterCinematicState();

        cinematic.postCinematicCallback = delegate()
        {
            StopCinematic(cinematic);
        };
        cinematic.StartCinematic();
    }
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    /// <summary>
    //  Called once when the game is over
    /// </summary>
    public void OnGameover(bool win)
    {
        _MatchVictory = win;
        _GameIsOver   = true;

        // Start game over cinematic
        Cinematic cine = WaveManager.Instance.CinematicDefeat;

        if (cine != null)
        {
            cine.StartCinematic();
        }
    }