示例#1
0
    // Use this for initialization
    void Awake()
    {
        S = this;

#if DEBUG_AlertModeManager_ConsoleLogAlertModeChange
        // This could have been part of the ALERT_MODE setter property, but I
        //  wanted to have an example of adding a method to a delegate.
        alertModeStatusChangeDelegate += LogToConsole;
#endif

        // Note that this assignment to false should NOT be expected to call the
        //  delegate because the initial value of _ALERT_MODE is also false.
        ALERT_MODE = false;
    }
示例#2
0
    void StartLevel()
    {
        AlertModeManager.SwitchToAlertMode(false);
        GameObject go = GameObject.Find("_PlayerStart");

        if (go != null)
        {
            InteractingPlayer.SetPosition(go.transform.position, go.transform.rotation);
            StealthPlayerCamera.ResetToFarPosition();
        }
        state = eGameManagerState.level;
        if (LEVEL_START_EVENT != null)
        {
            LEVEL_START_EVENT();
        }
    }
示例#3
0
 public override void Action()
 {
     AlertModeManager.SwitchToAlertMode();
 }