/// <summary> /// Return true to block the event /// </summary> public override bool Event(FsmEvent fsmEvent) { if (firstTime) { if (!Validate()) { Finish(); } firstTime = false; } if (Finished) { return(false); } if (Fsm.EventData.SentByState == State || fsmEvent == FsmEvent.Finished) { return(false); } var blocked = DoBlockEvent(fsmEvent); if (blocked && logBlockedEvents.Value) { ActionHelpers.DebugLog(Fsm, LogLevel.Info, "Blocked: " + fsmEvent.Name, true); } return(blocked); }
public override void OnEnter() { if (!string.IsNullOrEmpty(text.Value)) { ActionHelpers.DebugLog(base.Fsm, logLevel, text.Value, sendToUnityLog); } Finish(); }
public override void OnEnter() { if (!string.IsNullOrEmpty(this.text.Value)) { ActionHelpers.DebugLog(base.Fsm, this.logLevel, this.text.Value); } base.Finish(); }
public override void OnEnter() { spectrum = UnityEngine.Object.FindObjectOfType <AudioSpectrum>(); if (null == spectrum) { ActionHelpers.DebugLog(Fsm, LogLevel.Error, "AudioSpectrum not found.", true); Finish(); } }
public override void OnEnter() { string text = "None"; if (!gameObject.IsNone) { text = gameObject.Name + ": " + gameObject; } ActionHelpers.DebugLog(base.Fsm, logLevel, text, sendToUnityLog); Finish(); }
public override void OnEnter() { string text = "None"; if (!vector2Variable.IsNone) { text = vector2Variable.Name + ": " + vector2Variable.Value; } ActionHelpers.DebugLog(base.Fsm, logLevel, text); Finish(); }
/// <summary> /// Return true to block the event /// </summary> public override bool Event(FsmEvent fsmEvent) { var ignored = DoIgnoreEvent(fsmEvent); if (ignored && logIgnoredEvents.Value) { ActionHelpers.DebugLog(Fsm, LogLevel.Info, "Ignored: " + fsmEvent.Name, true); } return(ignored); }
public override void OnEnter() { string text = "None"; if (!floatVariable.IsNone) { text = floatVariable.Name + ": " + floatVariable.Value; } ActionHelpers.DebugLog(base.Fsm, logLevel, text, sendToUnityLog); Finish(); }
public override void OnEnter() { string text = "None"; if (!this.gameObject.IsNone) { text = this.gameObject.Name + ": " + this.gameObject; } ActionHelpers.DebugLog(base.Fsm, this.logLevel, text); base.Finish(); }
public override void OnEnter() { string text = "None"; if (!this.floatVariable.IsNone) { text = this.floatVariable.Name + ": " + this.floatVariable.Value; } ActionHelpers.DebugLog(base.Fsm, this.logLevel, text); base.Finish(); }
public override void OnEnter() { var text = "None"; if (!fsmObject.IsNone) { text = fsmObject.Name + ": " + fsmObject; } ActionHelpers.DebugLog(Fsm, logLevel, text, sendToUnityLog); Finish(); }
public override void OnEnter() { var text = "None"; if (!vector3Variable.IsNone) { text = vector3Variable.Name + ": " + vector3Variable.Value; } ActionHelpers.DebugLog(Fsm, logLevel, text, sendToUnityLog); Finish(); }
public override void OnEnter() { string text = "None"; if (!gameObject.IsNone) { text = gameObject.Name + ": " + gameObject.ToString(); } ActionHelpers.DebugLog(Fsm, logLevel, text); Finish(); }
public override void OnEnter() { var text = "None"; if (!boolVariable.IsNone) { text = boolVariable.Name + ": " + boolVariable.Value; } ActionHelpers.DebugLog(Fsm, logLevel, text); Finish(); }
public override void OnEnter() { ActionHelpers.DebugLog(base.Fsm, this.logLevel, this.fsmVar.DebugString()); base.Finish(); }
public override void OnEnter() { ActionHelpers.DebugLog(Fsm, logLevel, fsmVar.DebugString()); Finish(); }
public override void OnEnter() { ActionHelpers.DebugLog(Fsm, logLevel, variable.DebugString(), sendToUnityLog); Finish(); }