Beispiel #1
0
 // Use this for initialization
 void Start()
 {
     t      = this.transform;
     player = GameObject.FindGameObjectWithTag("Player").transform;
     war    = player.GetComponent <WarriorClass>();
     coins  = Random.Range(1, 5);
 }
Beispiel #2
0
    // Use this for initialization
    void Start()
    {
        selectable[0] = warriorSelection;
        selectable[1] = thiefSelection;
        selectable[2] = mageSelection;
        selectable[3] = druidSelection;

        selectable[4] = strengthStat;
        selectable[5] = constitutionStat;
        selectable[6] = dexterityStat;
        selectable[7] = intellectStat;
        selectable[8] = wisdomStat;
        selectable[9] = charismaStat;

        selectable[10] = nextScene;

        selectable[0].text = "Warrior";
        selectable[1].text = "Thief";
        selectable[2].text = "Mage";
        selectable[3].text = "Druid";

        selectable[4].text = "-";
        selectable[5].text = "-";
        selectable[6].text = "-";
        selectable[7].text = "-";
        selectable[8].text = "-";
        selectable[9].text = "-";

        selectable[10].text = "Start your adventure";

        infoText[0] = "Strength - Determines physical damage and carrying weight";                  //"ME SMASH With me Big HEAVY BoUlder!!11";
        infoText[1] = "Constitution - Determines your health";                                      //"Life is short, make it worthwhile.";
        infoText[2] = "Dexterity - Determines your crit chance, evade chance";                      //"Slime yourself up!";
        infoText[3] = "Intellect - Determines your magic damage, ability to save up action points"; // "Knowledge is power, and I know some things.";
        infoText[4] = "Wisdom - Determines the amount of actions point you get";                    // "Experinced with experiences.";
        infoText[5] = "Charisma - Gives you better prices at shops, better items";                  //"One mans trash is another ones treasure.";

        warriorStatStorage = classStorage.GetComponent <WarriorClass>();
        thiefStatStorage   = classStorage.GetComponent <ThiefClass>();
        druidStatStorage   = classStorage.GetComponent <DruidClass>();
        mageStatStorage    = classStorage.GetComponent <MageClass>();

        statName[0] = "Strength";
        statName[1] = "Constitution";
        statName[2] = "Dexterity";
        statName[3] = "Intellect";
        statName[4] = "Wisdom";
        statName[5] = "Charisma";
    }