示例#1
0
        public BaseBehaviour(string name
                             , int priority
                             , string groupName)
        {
            m_InstanceID  = AutoIncrementID.AutoID();
            m_Name        = name;
            m_Group       = groupName;
            m_Priority    = priority;
            m_Alive       = false;
            m_LastEnable  = false;
            m_Enable      = true;
            m_FeatureFlag = FeatureFlag.None;

            Kernel.BehaviourManager.AddBehavior(this);
        }
示例#2
0
 public virtual void OnInitialize(string name, object initializeData)
 {
     m_InstanceID = AutoIncrementID.AutoID();
     m_Name       = name;
     SetEnable(true);
 }