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

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