Пример #1
0
    public void prThink()
    {
        myLevel ml = new myLevel(num); //搜尋目前等級

        ml.Load();
        if (ml.load.Level.Equals(1))
        {
            GameObject.Find("Cp" + num + "ProgressBar").GetComponent <ProgressBar>().Start();
        }
    }
Пример #2
0
    public void Start()
    {
        myLevel ml = new myLevel(num);

        ml.Load();
        if (ml.load.Level > 0)
        {
            sl.maxValue = this.maxtime;
            InvokeRepeating("run", 0, 0.01f);
        }
    }
Пример #3
0
        public void Set(String number)   //填入要的那項
        {
            level   = GameObject.Find("Cp" + number + "levelText").GetComponent <Text>();
            upgrade = GameObject.Find("Cp" + number + "upText").GetComponent <Text>();
            myLevel ml = new myLevel(number);

            ml.Load();
            level.text = ml.load.Level.ToString();
            Convert con    = new Convert();
            int     bottle = con.cash(ml.load.Level);

            upgrade.text = bottle.ToString();
        }
Пример #4
0
 public void run()
 {
     if (sl.value >= maxtime)
     {
         sl.value = 0;
         myLevel ml = new myLevel(num);
         ml.Load();
         myCashJS mc = new myCashJS();
         mc.Load();
         mc.load.cash += ml.load.Level;
         mc.Save(mc.load.cash);
     }
     sl.value += 0.01f;
 }
Пример #5
0
    public void save()
    {
        myCashJS lj = new myCashJS();

        lj.Load();
        myLevel ml = new myLevel("1");

        ml.Load();
        num        = ml.load.Level + 1;
        this.cash  = lj.load.cash;
        this.cash += num;

        lj.Save(this.cash);
    }
Пример #6
0
    public void upgrade()
    {
        myLevel ml = new myLevel(num); //搜尋目前等級

        ml.Load();
        myCashJS mc = new myCashJS();

        mc.Load();
        Assets.C_.Character.Convert con = new Assets.C_.Character.Convert();
        mc.load.cash -= con.cash(ml.load.Level);
        mc.Save(mc.load.cash);
        int level = ml.load.Level;

        level++;
        ml.Save(level);
        SetStatus s1 = new SetStatus();

        s1.Set(num);

        //  UpDecide up = new UpDecide();//調整點擊變數
        //  up.upgrade();
    }
Пример #7
0
    public void upgrade()   //管控升等的
    {
        myLevel ml = new myLevel("1");

        ml.Load();
    }