Exemplo n.º 1
0
    public void change()
    {
        val = Convert.ToInt32(slider.value);
        string encrypted30 = cryptography.Encrypt(val);

        QuickSaveWriter.Create("UserData")
        .Write(cryptography.Encrypt("fps"), encrypted30)
        .Commit();
        Vl.text = val + "";
        HeroT Data = Player.GetComponent <HeroT>();

        Data.Fps(val);
    }
Exemplo n.º 2
0
    public void Next6()
    {
        if (Points == 0)
        {
            cal();
            ULevel = 0;
            string encrypted1  = cryptography.Encrypt(Hp);
            string encrypted2  = cryptography.Encrypt(Physical_Attack);
            string encrypted3  = cryptography.Encrypt(Magic_Attack);
            string encrypted4  = cryptography.Encrypt(Physical_Resistance);
            string encrypted5  = cryptography.Encrypt(Physical_Defense);
            string encrypted6  = cryptography.Encrypt(Magic_Defense);
            string encrypted7  = cryptography.Encrypt(Magic_Resistance);
            string encrypted8  = cryptography.Encrypt(Agility);
            string encrypted9  = cryptography.Encrypt(Stamina);
            string encrypted10 = cryptography.Encrypt(Mana);
            string encrypted11 = cryptography.Encrypt(AttackSpeed);
            string encrypted12 = cryptography.Encrypt(Level);
            string encrypted13 = cryptography.Encrypt(Exp);
            string encrypted14 = cryptography.Encrypt(ULevel);
            string encrypted15 = cryptography.Encrypt(coin);
            string encrypted16 = cryptography.Encrypt(Race);
            string encrypted17 = cryptography.Encrypt(Class);
            string encrypted18 = cryptography.Encrypt(Weapon);
            string encrypted19 = cryptography.Encrypt(Strength);
            string encrypted20 = cryptography.Encrypt(Endurance);
            string encrypted21 = cryptography.Encrypt(Dexternity);
            string encrypted22 = cryptography.Encrypt(Constitution);
            string encrypted23 = cryptography.Encrypt(Vitality);
            string encrypted24 = cryptography.Encrypt(Intelligence);
            string encrypted25 = cryptography.Encrypt(Name);
            string encrypted26 = cryptography.Encrypt(Gender);



            QuickSaveWriter.Create("UserData")
            .Write(cryptography.Encrypt("Hp"), encrypted1)
            .Write(cryptography.Encrypt("Physical_Attack"), encrypted2)
            .Write(cryptography.Encrypt("Magic_Attack"), encrypted3)
            .Write(cryptography.Encrypt("Physical_Resistance"), encrypted4)
            .Write(cryptography.Encrypt("Physical_Defense"), encrypted5)
            .Write(cryptography.Encrypt("Magic_Defense"), encrypted6)
            .Write(cryptography.Encrypt("Magic_Resistance"), encrypted7)
            .Write(cryptography.Encrypt("Agility"), encrypted8)
            .Write(cryptography.Encrypt("Stamina"), encrypted9)
            .Write(cryptography.Encrypt("Mana"), encrypted10)
            .Write(cryptography.Encrypt("AttackSpeed"), encrypted11)
            .Write(cryptography.Encrypt("Level"), encrypted12)
            .Write(cryptography.Encrypt("Exp"), encrypted13)
            .Write(cryptography.Encrypt("ULevel"), encrypted14)
            .Write(cryptography.Encrypt("Coin"), encrypted15)
            .Write(cryptography.Encrypt("Race"), encrypted16)
            .Write(cryptography.Encrypt("Class"), encrypted17)
            .Write(cryptography.Encrypt("Weapon"), encrypted18)
            .Write(cryptography.Encrypt("Strength"), encrypted19)
            .Write(cryptography.Encrypt("Endurance"), encrypted20)
            .Write(cryptography.Encrypt("Dexternity"), encrypted21)
            .Write(cryptography.Encrypt("Constitution"), encrypted22)
            .Write(cryptography.Encrypt("Vitality"), encrypted23)
            .Write(cryptography.Encrypt("Intelligence"), encrypted24)
            .Write(cryptography.Encrypt("Name"), encrypted25)
            .Write(cryptography.Encrypt("Gender"), encrypted26)
            .Commit();

            HeroT Data = data1.GetComponent <HeroT>();

            Data.strength(Strength);
            Data.endurance(Endurance);
            Data.dexternity(Dexternity);
            Data.constitution(Constitution);
            Data.vitality(Vitality);
            Data.intelligence(Intelligence);
            Data.hp1(Hp);
            Data.physical_Attack(Physical_Attack);
            Data.magic_Attack(Magic_Attack);
            Data.physical_Resistance(Physical_Resistance);
            Data.physical_Defense(Physical_Defense);
            Data.magic_Defense(Magic_Defense);
            Data.magic_Resistance(Magic_Resistance);
            Data.agility(Agility);
            Data.stamina(Stamina);
            Data.mana(Mana);
            Data.attackSpeed(AttackSpeed);


            Button.SetActive(false);
            UIElements0.SetActive(true);
            UIElements1.SetActive(true);
            UIElements2.SetActive(true);
            UIElements3.SetActive(true);
            UIElements4.SetActive(true);
            UIElements5.SetActive(true);
        }
    }
Exemplo n.º 3
0
    public void OnClick()
    {
        HeroT Data = Player.GetComponent <HeroT>();

        Data.Ft(L);
    }
Exemplo n.º 4
0
    void Update()
    {
        HeroT Data = Player.GetComponent <HeroT>();

        transform.position = Data.Poval;
    }