Exemple #1
0
 /// <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);
 }
Exemple #2
0
 // Use this for initialization
 void Start()
 {
     mRig        = GetComponent <OrbitRig>();
     mController = GameObject.FindGameObjectWithTag("Player").GetComponent <MotionController>();
     mPostProcessingBehaviour = GetComponent <PostProcessingBehaviour>();
 }