Exemple #1
0
    public void auto_set_avalible(int enable_item_idx, effect f)
    {
        data.Clear();
        if (f == effect.just_open_close)
        {
            my_cus = myavalible;
        }
        if (f == effect.fadeout)
        {
            my_cus = myfadeout;
        }

        int    k    = _list.Count;
        string a    = Convert.ToString(enable_item_idx, 2);
        string full = string.Format("{0:D" + k + "}", Int32.Parse(a));

        char[] ns = full.ToCharArray();
        Array.Reverse(ns);
        for (int i = 0; i < ns.Length; i++)
        {
            data.Add(ns[i].ToString());
        }


        viewUpdate = true;
    }
Exemple #2
0
 public void set_avalible(List <string> openlist)
 {
     data       = openlist;
     my_cus     = this.myavalible;
     viewUpdate = true;
 }
Exemple #3
0
 // Use this for initialization
 void Start()
 {
     viewUpdate = false;
     data       = new List <string> ();
     my_cus     = null;
 }