Exemplo n.º 1
0
    public void BeBuff(int buffId)
    {
        DBBuffConf conf = DBBuffTable.GetRecord(buffId);
        Buff       buff = new Buff();

        buff.Start(this, conf);
        buffList.Add(buff);
    }
Exemplo n.º 2
0
 void OnDestroy()
 {
     instance = null;
 }
Exemplo n.º 3
0
 void Awake()
 {
     instance = this;
     Init();
 }