Example #1
0
    void Start()
    {
        Player     = GameObject.FindGameObjectWithTag("Player"); // Encontra o player via tag
        Boss       = GameObject.FindGameObjectWithTag("Boss");   // Encontra o Boss via tag
        Grounder   = GameObject.FindWithTag("Grounder");         //Identifica o objeto Grounder
        moveScript = Player.GetComponent <MoveRigidbody>();

        Comp_Call = this.gameObject.GetComponent <Comp_Call>();

        Tell_Push = GameObject.FindGameObjectWithTag("Push");
        Tell_Pull = GameObject.FindGameObjectWithTag("Pull");

        Tell_Pull.SetActive(false);
        Tell_Push.SetActive(false);
    }
    private Comp_Call Comp_Call;         // Script referente ao Comp_Call

    void Start()
    {
        Comp_Call = this.gameObject.GetComponent <Comp_Call>();
    }
Example #3
0
 void Start()
 {
     helice    = new GameObject[HelicesFogo_offset.Length];
     Comp_Call = this.GetComponent <Comp_Call>();
 }