private void Start() { _animator = GetComponent <Animator>(); _screenLighting = FindObjectOfType <ScreenLighting>(); _canStopMoving = true; _coroutineIsRunning = false; ResetEvolution(); }
// Use this for initialization void Start() { _playerController = FindObjectOfType <PlayerController>(); _playerAnimationController = FindObjectOfType <PlayerAnimationController>(); _screenLighting = FindObjectOfType <ScreenLighting>(); _camera = FindObjectOfType <CameraController>(); _screenFilterImage = _screenLighting.transform.GetComponent <Image>(); _soundManager = SoundManager.instance; _inGameOverMenu = false; }