コード例 #1
0
    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>();
    }
コード例 #2
0
    void Awake()
    {
        usarRefereciaDoPlayer_ref = GameObject.Find("Game").GetComponent <UsarRefereciaDoPlayer>();

        righ = GetComponent <Rigidbody2D>();
    }
コード例 #3
0
 private void Awake()
 {
     usarRefereciaDoPlayer_ref = GameObject.Find("Game").GetComponent <UsarRefereciaDoPlayer>();
 }