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; }
public void set_avalible(List <string> openlist) { data = openlist; my_cus = this.myavalible; viewUpdate = true; }
// Use this for initialization void Start() { viewUpdate = false; data = new List <string> (); my_cus = null; }