Esempio n. 1
0
 // Use this for initialization
 void Start()
 {
     aud        = GameObject.Find("AudioManager").GetComponent <AudioComprehensive>();
     windowX    = Screen.width / 2;
     windowY    = Screen.height / 2;
     windowRect = new Rect(Screen.width / 2 - windowX / 2,
                           Screen.height / 2 - windowY / 2, windowX, windowY);
     cameraZoom   = false;
     cab          = GameObject.Find("Best Cabinet Ever_0").GetComponent <Cabinet>();
     player       = GameObject.Find("Player");
     playerScript = player.GetComponent <Player>();
 }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     aud = GameObject.Find("AudioManager").GetComponent <AudioComprehensive>();
 }