void Start() { CalculateAcceleration(); if (ManageScenes.DoesSceneHavePlayer() != false) { player = GameObject.FindGameObjectWithTag("Player").transform; } }
void FixedUpdate() { if (ManageScenes.DoesSceneHavePlayer() != false) { CalculateAcceleration(); CalculateGrowth(); MoveMonster(); TrackPlayerDirection(); TurnToPlayer(); } }