/// <summary> /// Called when the object is selected in the editor /// </summary> private void OnEnable() { // Grab the serialized objects mTarget = (OrbitRig)target; mTargetSO = new SerializedObject(target); }
// Use this for initialization void Start() { mRig = GetComponent <OrbitRig>(); mController = GameObject.FindGameObjectWithTag("Player").GetComponent <MotionController>(); mPostProcessingBehaviour = GetComponent <PostProcessingBehaviour>(); }