void Awake() { _settings = FindObjectOfType <Settings> (); _hellFire = FindObjectOfType <TheHellFire> (); _theLight = FindObjectOfType <TheLight> (); _currentAppearanceState = sheep == 100 ? _appearances.Length - 1 : 0; }
void Start() { theLight = FindObjectOfType <TheLight>(); audio = GetComponent <AudioSource>(); transform.rotation = Quaternion.Euler(0, cameraX, 0); camera.transform.localRotation = Quaternion.Euler(-cameraY, 0, 0); }
void Start() { player = FindObjectOfType <Player>(); theLight = FindObjectOfType <TheLight>(); blur = GetComponent <Blur>(); bloom = GetComponent <Bloom>(); twirl = GetComponent <Twirl>(); camera = GetComponent <Camera>(); shafts = GetComponent <SunShafts>(); motionBlur = GetComponent <CameraMotionBlur>(); }
public override void Awake() { _settings = FindObjectOfType <Settings> (); _theLight = FindObjectOfType <TheLight> (); base.Awake(); }