Пример #1
0
    // Start is called before the first frame update
    void Start()
    {
        if (SaveMaster.GetActiveSlot() == -1)
        {
            this.GetComponent <PlayerMovement>().LockMovement();
            stats.maxen     = 10;
            stats.maxhp     = 20;
            stats.hp        = 15;
            stats.en        = 5;
            stats.lvl       = 1;
            stats.exp       = 0;
            stats.exptonext = 20;
            stats.off       = 10;
            stats.def       = 8;
            stats.spd       = 6;
            stats.pts       = 5;
        }
        else
        {
            this.GetComponent <PlayerMovement>().UnlockMovement();
            genderMenu.SetActive(false);
            Debug.Log("Load");
        }
        //stats.maxen = 10;
        //stats.maxhp = 20;
        //stats.hp = 20;
        //stats.en = 10;
        //stats.lvl = 1;
        //stats.exp = 0;
        //stats.exptonext = 20;
        //stats.off = 10;
        //stats.def = 8;
        //stats.spd = 6;
        //stats.pts = 5;
        atks      = new Attacks();
        skillList = new List <Skill>();
        Skill armsUp = new Skill(atks.ArmsUp, 1, 2, "Arms Up", "Put your arms up in front of your much more delicate face. Defense up by 2.");
        Skill windUp = new Skill(atks.WindUp, 2, 3, "Wind Up", "Start spinning your arm around in a circle. It works in cartoons. Attack up by 2.");
        Skill heal   = new Skill(atks.GoodSide, 3, 3, "Happy Thoughts", "Guess it's not all that bad. Heal yourself by 20 HP.");
        Skill combo  = new Skill(atks.PlayerCombo, 3, 3, "Multi-Hit", "Uses a mix of elementary-level martial arts you learned at the age of 9 and primal instinct. Deals low damage to an enemy 3 times.", true);

        skillList.Add(armsUp);
        skillList.Add(windUp);
        skillList.Add(heal);
        skillList.Add(combo);
    }