Example #1
0
        private void OnEnable()
        {
            M      = (AnimalAIControl)target;
            script = MonoScript.FromMonoBehaviour(M);

            stoppingDistance = serializedObject.FindProperty("stoppingDistance");
        }
Example #2
0
 private void OnEnable()
 {
     M      = (AnimalAIControl)target;
     script = MonoScript.FromMonoBehaviour(M);
 }