Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     level        = 0;
     audiomanager = (AudioManagerWall)GameObject.FindObjectOfType <AudioManagerWall>();
     gamemanager  = FindObjectOfType <GameManagerWall>();
     fireworks    = GameObject.Find("Fireworks").GetComponent <Fireworks>();
     startAudio(0);
 }
Ejemplo n.º 2
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;
        }
    }
Ejemplo n.º 3
0
 void Start()
 {
     audiomanager = FindObjectOfType <AudioManagerWall>();
     fireworks    = GetComponent <ParticleSystem>();
     em           = fireworks.emission;
 }
Ejemplo n.º 4
0
 void Awake()
 {
     networker      = FindObjectOfType <NetworkHelper>();
     audiomanager   = (AudioManagerWall)GameObject.FindObjectOfType <AudioManagerWall>();
     Cursor.visible = false;
 }