Exemplo n.º 1
0
    public void classDescr()
    {
        PlayerClasses pclass = GetComponentInParent <PlayerClasses>();
        ClassUltimate cUlt   = GetComponentInParent <ClassUltimate>();

        title  = cUlt.descrTable.getName(pclass.classNumber);
        descr1 = cUlt.descrTable.getText(pclass.classNumber) + "\n\nUltimate\n" + cUlt.descrTable.getText2(pclass.classNumber);
    }
Exemplo n.º 2
0
    private void Start()
    {
        movement  = GetComponent <PlayerMovement>();
        stats     = GetComponent <PlayerStats>();
        rigidBody = GetComponent <Rigidbody2D>();
        fishing   = GetComponent <PlayerFishing>();
        classUlt  = GetComponent <ClassUltimate>();
        helpMenu  = GetComponentInChildren <PlayerMenu>();
        helpMenu.frame.SetActive(false);
        playerInventory.gameObject.SetActive(true);

        /* Assume one camera exists */
        cam = GameObject.FindObjectOfType <UI_Camera>();
    }