Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        ui = GameObject.Find("UIManagers");

        //attacks
        pcMelee   = this.GetComponent <T_Player_Melee>();
        pcRanged  = this.GetComponent <T_Player_Shooting>();
        pcSpecial = this.GetComponent <T_Special_Attacks>();

        //movement
        pcDash     = this.GetComponent <T_Dash>();
        pcMovement = this.GetComponent <T_Player_Movement>(); //havent done anything with this yet because unsure of how to put input listner for axis here

        //UI stuff
        uiMenu   = ui.transform.GetChild(1).GetComponent <T_PauseManager>();
        uiDialog = ui.transform.GetChild(3).GetComponent <T_DialogManager>();
    }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     manager      = GameObject.Find("UIManagers").transform.GetChild(3).GetComponent <T_DialogManager>();
     pauseManager = GameObject.Find("UIManagers").transform.GetChild(1).GetComponent <T_PauseManager>();
 }