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); }
public virtual void OnInitialize(string name, object initializeData) { m_InstanceID = AutoIncrementID.AutoID(); m_Name = name; SetEnable(true); }