void Awake()
    {
        //usarRefereciaDoPlayer_ref = GetComponent<UsarRefereciaDoPlayer>();
        spawnarArmadilhas_ref = GetComponent <SpawnarArmadilhas>();

        spawnarMunicao_ref = GetComponent <SpawnarMunicao>();



        if (singleton != null && singleton != this)
        {
            GameObject.Destroy(this);
        }
        else
        {
            singleton = this;
        }
    }
Example #2
0
 private void Awake()
 {
     vida_ref = GameObject.Find("Tanque").GetComponent <Vida>();
     spawnarArmadilhas_ref = GetComponent <SpawnarArmadilhas>();
 }
Example #3
0
 private void Awake()
 {
     spawnarArmadilhas_ref = GameObject.Find("Game").GetComponent <SpawnarArmadilhas>();
 }