public void ReplaceCreateGameObjCmdComp(Other.ActorTag newTag) { var index = GameComponentsLookup.CreateGameObjCmdComp; var component = (Components.Base.CreateGameObjCmdComp)CreateComponent(index, typeof(Components.Base.CreateGameObjCmdComp)); component.Tag = newTag; ReplaceComponent(index, component); }
public void ReplaceFindTargetCmdComp(Other.ActorTag newTargetTag, Components.Target.FindTargetType newFindTargetType, Components.Target.LostTargetActionType newLostTargetActionType) { var index = GameComponentsLookup.FindTargetCmdComp; var component = (Components.Target.FindTargetCmdComp)CreateComponent(index, typeof(Components.Target.FindTargetCmdComp)); component.TargetTag = newTargetTag; component.FindTargetType = newFindTargetType; component.LostTargetActionType = newLostTargetActionType; ReplaceComponent(index, component); }
public void AddTargetComp(int newTargetId, Other.ActorTag newTargetTag, Components.Target.FindTargetType newFindTargetType, Components.Target.LostTargetActionType newLostTargetActionType) { var index = GameComponentsLookup.TargetComp; var component = (Components.Target.TargetComp)CreateComponent(index, typeof(Components.Target.TargetComp)); component.TargetId = newTargetId; component.TargetTag = newTargetTag; component.FindTargetType = newFindTargetType; component.LostTargetActionType = newLostTargetActionType; AddComponent(index, component); }