예제 #1
0
    public override void ListenInternalMessage(eInternalInteractMessage _internalInteractMsg)
    {
        base.ListenInternalMessage(_internalInteractMsg);
        switch (_internalInteractMsg)
        {
        case eInternalInteractMessage.Disable:
            //m_fTargetEmissionMultiply = 0;
            SetTextureMultiply(0);
            StopCheckGround();
            break;

        case eInternalInteractMessage.Enable_Physics: SetRigidbodyValue(true, false); break;

        case eInternalInteractMessage.Disable_Physics: SetRigidbodyValue(false, true); break;

        case eInternalInteractMessage.Detect_Collision: DetectCollision(); break;

        case eInternalInteractMessage.UnDetect_Collision: UnDetectCollision(); break;

        case eInternalInteractMessage.Freeze_Rigidbody_Rotation: FreezeRigidbodyRotation(); break;

        case eInternalInteractMessage.UnFreeze_Rigidbody_Rotation: UnFreezeRigidbodyRotation(); break;

        case eInternalInteractMessage.Start_Check_Ground: StartCheckGround(); break;

        case eInternalInteractMessage.Stop_Check_Ground: StopCheckGround(); break;
        }
    }
        public virtual void ListenInternalMessage(eInternalInteractMessage _internalInteractMsg)
        {
            switch (_internalInteractMsg)
            {
            case eInternalInteractMessage.Disable: m_bIsEnabled = false; break;

            case eInternalInteractMessage.Enable: m_bIsEnabled = true; break;
            }
        }
예제 #3
0
        public override void ListenInternalMessage(eInternalInteractMessage _internalInteractMsg)
        {
            base.ListenInternalMessage(_internalInteractMsg);
            switch (_internalInteractMsg)
            {
            case eInternalInteractMessage.Pull_Start_To_Max: StartProcToMax(null); break;

            case eInternalInteractMessage.Pull_Start_To_Min: StartProcToMin(null); break;
            }
        }
예제 #4
0
 public override void ListenInternalMessage(eInternalInteractMessage _internalInteractMsg)
 {
     base.ListenInternalMessage(_internalInteractMsg);
     switch (_internalInteractMsg)
     {
     case eInternalInteractMessage.Disable:
         GameManagers.GameLoop.onUpdate      -= OnGrabbing;
         GameManagers.GameLoop.onFixedUpdate -= OnFixedGrabbing;
         break;
     }
 }