// 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; }
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(); } }
public override void Action() { AlertModeManager.SwitchToAlertMode(); }