Ejemplo n.º 1
0
    public void ResetLevel()
    {
        map.RestartLevel();

        if (EUpdateMinibotCount != null && EUpdateMinibotCount.GetInvocationList().Length > 0)
        {
            EUpdateMinibotCount();                                      // We update the Minibot Count
        }
        if (ELevelStarted != null && ELevelStarted.GetInvocationList().Length > 0)
        {
            ELevelStarted();
        }
    }
Ejemplo n.º 2
0
    public void StartLevel()
    {
        if (!Registry.replayViewer.enabled)
        {
            Registry.replayManager.StopReplay();
            Registry.replayManager.StartRecording();
        }

        isReplayMode = false;

        if (EUpdateMinibotCount != null && EUpdateMinibotCount.GetInvocationList().Length > 0)
        {
            EUpdateMinibotCount();                                      // We update the Minibot Count
        }
        if (ELevelStarted != null && ELevelStarted.GetInvocationList().Length > 0)
        {
            ELevelStarted();
        }
    }