// =============================================================================== // Implementation // ============== public virtual BEHAVIOR Select <BEHAVIOR>() where BEHAVIOR : BehaviorReadable { Type behaviorType = typeof(BEHAVIOR); QuillComponent component = QuillInjector.GetInstance().Container.GetComponent(behaviorType); BEHAVIOR bhv = (BEHAVIOR)component.GetComponentObject(behaviorType); if (bhv.IsInitialized) { return(bhv); } QuillInjector.GetInstance().Inject(bhv); return(bhv); }
public void Trigger(BEHAVIOR behavior) { currentBehavior = behavior; }
public Department(BEHAVIOR behavior, params Action[] actions) { this.actions = new List <Action>(actions); this.behavior = behavior; }