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; } }
public void OnEnable() { #region Script Targets dcScript = (PA_DroneCamera)target; #endregion }