void Start() { mainGameScript = FindObjectOfType <MainGameScript>(); playerGameScript = FindObjectOfType <PlayerGameScript>(); virtualCamera = GetComponent <CinemachineVirtualCamera>(); }
void Start() { mainGameScript = FindObjectOfType <MainGameScript>(); audioPlayer = FindObjectOfType <AudioPlayer>(); characterController = GetComponent <EnemyCharacterController>(); state = EnemyState.Idle; }
void Start() { controls = GetComponent <MouseControls>(); fishMeterNeedle = FindObjectOfType <FishMeterNeedle>(); audioPlayer = FindObjectOfType <AudioPlayer>(); mainGameScript = FindObjectOfType <MainGameScript>(); fishStack = GetComponentInChildren <FishStack>(); currentFishSchool = null; currentWeight = 0.0f; newDay = false; }