// Use this for initialization void Start() { level = 0; audiomanager = (AudioManagerWall)GameObject.FindObjectOfType <AudioManagerWall>(); gamemanager = FindObjectOfType <GameManagerWall>(); fireworks = GameObject.Find("Fireworks").GetComponent <Fireworks>(); startAudio(0); }
// Use this for initialization void Start() { if (!isServer) { //set lights lights = GameObject.FindGameObjectsWithTag("StreetLight"); audiomanager = (AudioManagerWall)GameObject.FindObjectOfType <AudioManagerWall>(); } if (isLocalPlayer) { helper = GameObject.Find("NetworkHelper"); helper.GetComponent <NetworkHelper>().communicator = this; } }
void Start() { audiomanager = FindObjectOfType <AudioManagerWall>(); fireworks = GetComponent <ParticleSystem>(); em = fireworks.emission; }
void Awake() { networker = FindObjectOfType <NetworkHelper>(); audiomanager = (AudioManagerWall)GameObject.FindObjectOfType <AudioManagerWall>(); Cursor.visible = false; }