Esempio n. 1
0
    public void mage_Wand(bool val)
    {
        if (val == true)
        {
            Mage_Dagger.GetComponent <Toggle>().isOn = false;
            Mage_Wand.GetComponent <Toggle>().isOn   = true;

            W = "Wand";
            selectedName.text = "Wand :\n +100% Intelligence(Magic Attack)";
            string encrypted = cryptography.Encrypt(W);
            QuickSaveWriter.Create("Temp")
            .Write(cryptography.Encrypt("Weapon"), encrypted)
            .Commit();
            Player_Data Data = Player.GetComponent <Player_Data>();
            Data.weapon(W);
        }
    }
Esempio n. 2
0
    public void knight_Sword(bool val)
    {
        if (val == true)
        {
            Knight_Sword.GetComponent <Toggle>().isOn  = true;
            Knight_Katana.GetComponent <Toggle>().isOn = false;


            W = "Two Handed Sword";
            selectedName.text = "Two Handed Sword :\n +120% Strength \n-25% Dexternity(Speed) \n+35% Vitality(Defense)";
            string encrypted = cryptography.Encrypt(W);
            QuickSaveWriter.Create("Temp")
            .Write(cryptography.Encrypt("Weapon"), encrypted)
            .Commit();
            Player_Data Data = Player.GetComponent <Player_Data>();
            Data.weapon(W);
        }
    }
Esempio n. 3
0
    public void mage_Dagger(bool val)
    {
        if (val == true)
        {
            Mage_Dagger.GetComponent <Toggle>().isOn = true;
            Mage_Wand.GetComponent <Toggle>().isOn   = false;


            W = "Dagger";
            selectedName.text = "Dagger : \n + 50% Dexternity(Speed)";
            string encrypted = cryptography.Encrypt(W);
            QuickSaveWriter.Create("Temp")
            .Write(cryptography.Encrypt("Weapon"), encrypted)
            .Commit();
            Player_Data Data = Player.GetComponent <Player_Data>();
            Data.weapon(W);
        }
    }
Esempio n. 4
0
    public void berseker_Katana(bool val)
    {
        if (val == true)
        {
            Berseker_Sword.GetComponent <Toggle>().isOn  = false;
            Berseker_Spear.GetComponent <Toggle>().isOn  = false;
            Berseker_Katana.GetComponent <Toggle>().isOn = true;

            W = "Katana";
            selectedName.text = "Katana : +100% Strength \n + 50% Dexternity(Speed) \n -50% Vitality(Defense)";
            string encrypted = cryptography.Encrypt(W);
            QuickSaveWriter.Create("Temp")
            .Write(cryptography.Encrypt("Weapon"), encrypted)
            .Commit();
            Player_Data Data = Player.GetComponent <Player_Data>();
            Data.weapon(W);
        }
    }
Esempio n. 5
0
    public void paladin_Wand(bool val)
    {
        if (val == true)
        {
            Paladin_Sword.GetComponent <Toggle>().isOn = false;
            Paladin_Spear.GetComponent <Toggle>().isOn = false;
            Paladin_Mace.GetComponent <Toggle>().isOn  = false;
            Paladin_Wand.GetComponent <Toggle>().isOn  = true;

            W = "Mace";
            selectedName.text = "Mace : +50% Strength \n +100% Vitality(Defense)";
            string encrypted = cryptography.Encrypt(W);
            QuickSaveWriter.Create("Temp")
            .Write(cryptography.Encrypt("Weapon"), encrypted)
            .Commit();
            Player_Data Data = Player.GetComponent <Player_Data>();
            Data.weapon(W);
        }
    }
Esempio n. 6
0
    public void duelist_Spear(bool val)
    {
        if (val == true)
        {
            Duelist_Sword.GetComponent <Toggle>().isOn  = false;
            Duelist_Spear.GetComponent <Toggle>().isOn  = true;
            Duelist_Dagger.GetComponent <Toggle>().isOn = false;
            Duelist_Mace.GetComponent <Toggle>().isOn   = false;
            Duelist_Katana.GetComponent <Toggle>().isOn = false;

            W = "Spear";
            selectedName.text = "Spear :\n +10% Dexternity(Speed) \n +50% Vitality(Defense)";
            string encrypted = cryptography.Encrypt(W);
            QuickSaveWriter.Create("Temp")
            .Write(cryptography.Encrypt("Weapon"), encrypted)
            .Commit();
            Player_Data Data = Player.GetComponent <Player_Data>();
            Data.weapon(W);
        }
    }