예제 #1
0
 void Awake()
 {
     dcoScript = GetComponent <PA_DroneController>();
     dcScript  = FindObjectOfType <PA_DroneCamera>();
     if (inputType == InputType.Custom)
     {
         forwardBackward  = cForwardBackward;
         strafeLeftRight  = cStrafeLeftRight;
         riseLower        = cRiseLower;
         turn             = cTurn;
         toggleMotor      = cToggleMotor;
         toggleCameraMode = cToggleCameraMode;
         toggleCameraGyro = cToggleCameraGyro;
         toggleFollowMode = cToggleFollowMode;
         cameraRiseLower  = cCameraRiseLower;
         cameraTurn       = cCameraTurn;
         cameraFreeLook   = cCameraFreeLook;
     }
 }
예제 #2
0
 public void OnEnable()
 {
     #region Script Targets
     dcScript = (PA_DroneCamera)target;
     #endregion
 }