Exemplo n.º 1
0
    void Start()
    {
        updateDbLvl(0);
        updateDbEnd(0);
        updateDbSliderValue(0);

        //   Player.transform.position = new Vector3(-1.944226f,0,0);

        totalHpEnemy  = int.Parse(Total_CalcaulationEnemy_Hp.text.ToString());
        totalATKEnemy = int.Parse(Total_CalcaulationEnemy_ATK.text.ToString());

        for (int i = 0; i < BattleSlider.Count; i++)
        {
            BattleSlider[i].maxValue = BattleSliderValueMix[i];
        }
        GetDay.DayIndex      = PlayerPrefs.GetInt("DayIndex", 1);
        CurrentDay           = GetDay.CurrentDay(GetDay.DayIndex);
        currentTimezone.text = CurrentDay;
        InvokeRepeating("daySwitcher", 20, 20);
    }