//添加方法 public void addFunc(CallBackAwards func) { this.func = func; sendAward(); }
public void clear() { this.func = null; this.awards = null; }
//注入回调函数 public void addFunc(string type, CallBackAwards callback) { AwardCache cache = AwardsCacheManager.getAwardCache(type); cache.addFunc(callback); }