示例#1
0
    public void Orc_Berseker(bool val)
    {
        if (val == true)
        {
            Orc_toggle1.GetComponent <Toggle>().isOn = false;
            Orc_toggle2.GetComponent <Toggle>().isOn = true;


            C = "Berseker";
            selectedName.text = "Berseker : Strength +20 \n Dexternity(Speed) +20 \n -10% Constitution(M Defense) \n +30% Endurance(HP) \n -20% Intelligence";
            string encrypted = cryptography.Encrypt(C);
            QuickSaveWriter.Create("Temp")
            .Write(cryptography.Encrypt("Class"), encrypted)
            .Commit();
            Player_Data Data = Player.GetComponent <Player_Data>();
            Data.class1(C);
        }
    }
示例#2
0
    public void Orc_Warrior(bool val)
    {
        if (val == true)
        {
            Orc_toggle1.GetComponent <Toggle>().isOn = true;
            Orc_toggle2.GetComponent <Toggle>().isOn = false;


            C = "Warrior";
            selectedName.text = "Warrior : Strength +10 \n Dexternity(Speed) +10 \n Endurance(HP) +10 \n Vitality(Defense) +10";
            string encrypted = cryptography.Encrypt(C);
            QuickSaveWriter.Create("Temp")
            .Write(cryptography.Encrypt("Class"), encrypted)
            .Commit();
            Player_Data Data = Player.GetComponent <Player_Data>();
            Data.class1(C);
        }
    }
示例#3
0
    public void Elf_Mage(bool val)
    {
        if (val == true)
        {
            Elf_toggle1.GetComponent <Toggle>().isOn = false;
            Elf_toggle2.GetComponent <Toggle>().isOn = false;
            Elf_toggle3.GetComponent <Toggle>().isOn = true;


            C = "Mage";
            selectedName.text = "Mage : -50% Strength \n -50%  Dexternity(Speed) \n -50% Endurance(HP) \n Intelligence(Magic Attack) +30 \n Constitution(M Defense) +10 \n +100% Intelligence(Magic Attack)";
            string encrypted = cryptography.Encrypt(C);
            QuickSaveWriter.Create("Temp")
            .Write(cryptography.Encrypt("Class"), encrypted)
            .Commit();
            Player_Data Data = Player.GetComponent <Player_Data>();
            Data.class1(C);
        }
    }
示例#4
0
    public void Human_Duelist(bool val)
    {
        if (val == true)
        {
            Human_toggle1.GetComponent <Toggle>().isOn = false;
            Human_toggle2.GetComponent <Toggle>().isOn = false;
            Human_toggle3.GetComponent <Toggle>().isOn = false;
            Human_toggle4.GetComponent <Toggle>().isOn = false;
            Human_toggle5.GetComponent <Toggle>().isOn = false;
            Human_toggle6.GetComponent <Toggle>().isOn = false;
            Human_toggle7.GetComponent <Toggle>().isOn = true;

            C = "Duelist";
            selectedName.text = "Duelist : Strength +15 \n Endurance(HP) +5 \n Dexternity(Speed) +15 \n Vitality(Defense) +5";
            string encrypted = cryptography.Encrypt(C);
            QuickSaveWriter.Create("Char")
            .Write(cryptography.Encrypt("Class"), encrypted)
            .Commit();
            Player_Data Data = Player.GetComponent <Player_Data>();
            Data.class1(C);
        }
    }
示例#5
0
    public void Human_Barbarian(bool val)
    {
        if (val == true)
        {
            Human_toggle1.GetComponent <Toggle>().isOn = false;
            Human_toggle2.GetComponent <Toggle>().isOn = false;
            Human_toggle3.GetComponent <Toggle>().isOn = false;
            Human_toggle4.GetComponent <Toggle>().isOn = false;
            Human_toggle5.GetComponent <Toggle>().isOn = false;
            Human_toggle6.GetComponent <Toggle>().isOn = true;
            Human_toggle7.GetComponent <Toggle>().isOn = false;

            C = "Barbarian";
            selectedName.text = "Barbarian : Strength +10 \n Endurance(HP) +20 \n Dexternity(Speed) +10 \n -20% Constitution(M Defense) \n +10% Strength \n +10% Endurance(HP)";
            string encrypted = cryptography.Encrypt(C);
            QuickSaveWriter.Create("Temp")
            .Write(cryptography.Encrypt("Class"), encrypted)
            .Commit();
            Player_Data Data = Player.GetComponent <Player_Data>();
            Data.class1(C);
        }
    }
示例#6
0
    public void Human_Paladin(bool val)
    {
        if (val == true)
        {
            Human_toggle1.GetComponent <Toggle>().isOn = false;
            Human_toggle2.GetComponent <Toggle>().isOn = false;
            Human_toggle3.GetComponent <Toggle>().isOn = true;
            Human_toggle4.GetComponent <Toggle>().isOn = false;
            Human_toggle5.GetComponent <Toggle>().isOn = false;
            Human_toggle6.GetComponent <Toggle>().isOn = false;
            Human_toggle7.GetComponent <Toggle>().isOn = false;

            C = "Paladin";
            selectedName.text = "Paladin: Strength +10 \n Dexternity(Speed) +5 \n Endurance(HP) +10 \n Intelligence(Magic Attack) +5 \n Constitution(M Defense) +10";
            string encrypted = cryptography.Encrypt(C);
            QuickSaveWriter.Create("Temp")
            .Write(cryptography.Encrypt("Class"), encrypted)
            .Commit();
            Player_Data Data = Player.GetComponent <Player_Data>();
            Data.class1(C);
        }
    }