private void Awake()
    {
        spriteRenderer_ref = GameObject.Find("GameOver").GetComponentInChildren <SpriteRenderer>();

        tanqueMovimento_ref = GetComponent <TanqueMovimento>();

        TiroDoPlayer_ref = GetComponent <TiroDoPlayer>();

        canhaoMovimento_ref = GetComponentInChildren <CanhaoMovimento>();

        vida_ref = GetComponent <Vida>();

        usarRefereciaDoPlayer_ref = GameObject.Find("Game").GetComponent <UsarRefereciaDoPlayer>();
    }
Beispiel #2
0
    // Start is called before the first frame update

    private void Awake()
    {
        tiroDoPlayer_ref = GameObject.Find("Tanque").GetComponent <TiroDoPlayer>();
        vida_ref         = GameObject.Find("Tanque").GetComponent <Vida>();
    }