protected virtual void LateUpdate() { foreach (PlayerBehaviour ABehavior in m_ListPlayerBehaviour) { ABehavior.LateUpdate(); } }
/// <summary> /// Outputs the behavior. /// </summary> /// <param name = "aBehavior">The behavior.</param> public override void OutputBehavior(ABehavior <TArachnodeDAO> aBehavior) { if (ApplicationSettings.EnableConsoleOutput) { Console.ForegroundColor = ConsoleColor.White; if (aBehavior is ACrawlAction <TArachnodeDAO> ) { Console.Write(BuildOutputString("CrawlAction: ")); } if (aBehavior is ACrawlRule <TArachnodeDAO> ) { Console.Write(BuildOutputString("CrawlRule: ")); } if (aBehavior is AEngineAction <TArachnodeDAO> ) { Console.Write(BuildOutputString("EngineAction: ")); } Console.WriteLine(aBehavior.TypeName); Console.Write(BuildOutputString(" -> IsEnabled: ")); if (aBehavior.IsEnabled) { Console.ForegroundColor = ConsoleColor.Green; } else { Console.ForegroundColor = ConsoleColor.Red; } Console.Write(aBehavior.IsEnabled); Console.ForegroundColor = ConsoleColor.White; Console.Write(" Order: " + aBehavior.Order); if (aBehavior is ACrawlAction <TArachnodeDAO> ) { Console.WriteLine(BuildOutputString(" CrawlActionType: " + ((ACrawlAction <TArachnodeDAO>)aBehavior).CrawlActionType)); } if (aBehavior is ACrawlRule <TArachnodeDAO> ) { Console.WriteLine(BuildOutputString(" CrawlRuleType: " + ((ACrawlRule <TArachnodeDAO>)aBehavior).CrawlRuleType)); } if (aBehavior is AEngineAction <TArachnodeDAO> ) { Console.WriteLine(BuildOutputString(" EngineActionType: " + ((AEngineAction <TArachnodeDAO>)aBehavior).EngineActionType)); } } }
protected virtual void FixedUpdate() { if (InGameGlobal.m_InGameGM == null || !InGameGlobal.GetInGameState().IsGameState(InGameState.States.PLAY)) { return; } FixedUpdateDeltaTimeBase(); foreach (PlayerBehaviour ABehavior in m_ListPlayerBehaviour) { ABehavior.FixedUpdate(); } }
protected void AddChild <TChild, TBehavior>(TChild Child, ABehavior <TBehavior> Behavior = null) where TChild : ASceneEntity, TBehavior { _childEdges.Add(new EntityEdge(this, Child, Behavior)); }