コード例 #1
0
        void Resurrect()
        {
            StateComponent state_component = ParentObject.GetComponent(StateComponent.ID) as StateComponent;

            if (state_component != null)
            {
                state_component.RemoveState(StateSystem.DEAD_STATE, 0);
            }
        }
コード例 #2
0
        public override void OnResurrect()
        {
            StateComponent state_component = ParentObject.GetComponent(StateComponent.ID) as StateComponent;

            if (state_component != null)
            {
                state_component.RemoveState(StateSystem.DEAD_STATE, 0);
            }
            GetLogicWorld().AddSimpleRenderMessage(RenderMessageType.Show, GetOwnerEntityID());
        }
コード例 #3
0
        public override void Unapply()
        {
            Entity target = GetOwnerEntity();

            if (target == null)
            {
                return;
            }
            //if (ObjectUtil.IsDead(target))
            //    return;
            StateComponent state_component = target.GetComponent(StateComponent.ID) as StateComponent;

            if (state_component == null)
            {
                return;
            }
            state_component.RemoveState(m_state, ParentObject.ID);
        }