// ===============================================================================
        //                                                                  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);
        }
예제 #2
0
 public void Trigger(BEHAVIOR behavior)
 {
     currentBehavior = behavior;
 }
예제 #3
0
 public Department(BEHAVIOR behavior, params Action[] actions)
 {
     this.actions  = new List <Action>(actions);
     this.behavior = behavior;
 }