예제 #1
0
        private bool AddState(
            string a_DisplayName,
            Vector2 a_Position,
            StateAttribute a_Attribute,
            AllowedTransitionType a_AllowedTransitions = AllowedTransitionType.All,
            int a_MaxTransitions = -1)
        {
            var newState = this.AddChildAsset <DSMState> ();

            newState.Init(this, a_DisplayName, a_Position, a_Attribute, a_AllowedTransitions, a_MaxTransitions);

            m_States.Add(newState);
            return(true);
        }
예제 #2
0
        public void Init(
            DSMObject a_Parent,
            string a_DisplayName,
            Vector2 a_Position,
            StateAttribute a_Attribute,
            AllowedTransitionType a_AllowedTransitions = AllowedTransitionType.All,
            int a_MaxTransitions = -1)
        {
            m_Parent = a_Parent;

            name          = a_DisplayName;
            m_DisplayName = a_DisplayName;

            position = a_Position;

            m_Attribute = a_Attribute;
            m_AllowedTransitionTypes = a_AllowedTransitions;

            m_MaxTransitions = a_MaxTransitions;
        }