public Entity AddstateHMotion(MTON._enum.HState newHstate)
        {
            var component = _stateHMotionComponentPool.Count > 0 ? _stateHMotionComponentPool.Pop() : new stateHMotionComponent();

            component.hstate = newHstate;
            return(AddComponent(ComponentIds.stateHMotion, component));
        }
        public Entity AddeventHMotion(int newID, MTON._enum.HState newHstate)
        {
            var component = _eventHMotionComponentPool.Count > 0 ? _eventHMotionComponentPool.Pop() : new eventHMotionComponent();

            component.ID     = newID;
            component.hstate = newHstate;
            return(AddComponent(ComponentIds.eventHMotion, component));
        }
        public Entity ReplacestateHMotion(MTON._enum.HState newHstate)
        {
            var previousComponent = hasstateHMotion ? stateHMotion : null;
            var component         = _stateHMotionComponentPool.Count > 0 ? _stateHMotionComponentPool.Pop() : new stateHMotionComponent();

            component.hstate = newHstate;
            ReplaceComponent(ComponentIds.stateHMotion, component);
            if (previousComponent != null)
            {
                _stateHMotionComponentPool.Push(previousComponent);
            }
            return(this);
        }
        public Entity ReplaceeventHMotion(int newID, MTON._enum.HState newHstate)
        {
            var previousComponent = haseventHMotion ? eventHMotion : null;
            var component         = _eventHMotionComponentPool.Count > 0 ? _eventHMotionComponentPool.Pop() : new eventHMotionComponent();

            component.ID     = newID;
            component.hstate = newHstate;
            ReplaceComponent(ComponentIds.eventHMotion, component);
            if (previousComponent != null)
            {
                _eventHMotionComponentPool.Push(previousComponent);
            }
            return(this);
        }