public BehaviorUpdateStage GetUpdateStage(Type stageType) { if (!updateStages.TryGetValue(stageType, out var stage)) { stage = new BehaviorUpdateStage(this, stageType); updateStages.Add(stageType, stage); } return(stage); }
public override void Stop(NodeManager manager) { updateStage = null; behaviorSystem = null; }
public override void Start() { behaviorSystem = Manager.ServiceProvider.RequireService <BehaviorSystem>(); updateStage = behaviorSystem.GetUpdateStage(UpdateStageType); }