public override void init() { flytxt.instance = this; base.transform.SetAsFirstSibling(); this.m_txtmap = new Dictionary <int, List <string> >(); this.m_gameobject = new Dictionary <int, List <GameObject> >(); for (int i = 0; i < this.m_num.Length; i++) { List <string> value = new List <string>(); this.m_txtmap.Add(i, value); } for (int j = 0; j < this.m_num.Length; j++) { List <GameObject> value2 = new List <GameObject>(); this.m_gameobject.Add(j, value2); } }
protected Dictionary <int, List <GameObject> > m_gameobject; //缓存的道具 public override void init() { instance = this; transform.SetAsFirstSibling(); m_txtmap = new Dictionary <int, List <string> >(); m_gameobject = new Dictionary <int, List <GameObject> >(); for (int i = 0; i < m_num.Length; i++) { List <string> txtlist = new List <string>(); m_txtmap.Add(i, txtlist); } for (int i = 0; i < m_num.Length; i++) { List <GameObject> glist = new List <GameObject>(); m_gameobject.Add(i, glist); } }