public void BeBuff(int buffId) { DBBuffConf conf = DBBuffTable.GetRecord(buffId); Buff buff = new Buff(); buff.Start(this, conf); buffList.Add(buff); }
void OnDestroy() { instance = null; }
void Awake() { instance = this; Init(); }