Пример #1
0
 void Start()
 {
     CalculateAcceleration();
     if (ManageScenes.DoesSceneHavePlayer() != false)
     {
         player = GameObject.FindGameObjectWithTag("Player").transform;
     }
 }
Пример #2
0
 void FixedUpdate()
 {
     if (ManageScenes.DoesSceneHavePlayer() != false)
     {
         CalculateAcceleration();
         CalculateGrowth();
         MoveMonster();
         TrackPlayerDirection();
         TurnToPlayer();
     }
 }