void Resurrect()
        {
            StateComponent state_component = ParentObject.GetComponent(StateComponent.ID) as StateComponent;

            if (state_component != null)
            {
                state_component.RemoveState(StateSystem.DEAD_STATE, 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());
        }
Beispiel #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);
        }