示例#1
0
 void Awake()
 {
     _settings = FindObjectOfType <Settings> ();
     _hellFire = FindObjectOfType <TheHellFire> ();
     _theLight = FindObjectOfType <TheLight> ();
     _currentAppearanceState = sheep == 100 ? _appearances.Length - 1 : 0;
 }
示例#2
0
    void Start()
    {
        theLight = FindObjectOfType <TheLight>();
        audio    = GetComponent <AudioSource>();

        transform.rotation             = Quaternion.Euler(0, cameraX, 0);
        camera.transform.localRotation = Quaternion.Euler(-cameraY, 0, 0);
    }
示例#3
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>();
    }
示例#4
0
 public override void Awake()
 {
     _settings = FindObjectOfType <Settings> ();
     _theLight = FindObjectOfType <TheLight> ();
     base.Awake();
 }