예제 #1
0
        void Start()
        {
            g_NPCControlManager = FindObjectOfType <NPCControlManager>();
            if (Target != null)
            {
                SetThirdPersonView();
                CurrentMode = CAMERA_MODE.THIRD_PERSON;
            }
            else
            {
                switch (CurrentMode)
                {
                case CAMERA_MODE.ISOMETRIC:
                    SetIsometricView();
                    break;

                case CAMERA_MODE.FIRST_PERSON:
                    SetFirstPersonView();
                    break;

                case CAMERA_MODE.THIRD_PERSON:
                    SetThirdPersonView();
                    break;
                }
            }
            if (g_NPCControlManager == null)
            {
                Debug.Log("NPCCamController --> No NPCControlManager with the NPCCamController enabled");
            }
        }
예제 #2
0
 void Start()
 {
     g_Camera            = FindObjectOfType <NPCCamController>();
     g_NPCControlManager = FindObjectOfType <NPCControlManager>();
     if (g_NPCControlManager == null)
     {
         Debug.Log("NPCIO --> Using NPCIO withou a NPCControlManager");
     }
 }