Пример #1
0
 /// <summary>
 /// 进入商店
 /// </summary>
 /// <param name="shop"></param>
 public void startShop(IBaseShop shop)
 {
     currentShop = shop;
 }
Пример #2
0
 /// <summary>
 /// 生成
 /// </summary>
 /// <returns></returns>
 public abstract void generate(IBaseShop baseShop);
Пример #3
0
 /// <summary>
 /// 离开商店
 /// </summary>
 /// <param name="shop"></param>
 public void terminateShop(IBaseShop shop)
 {
     currentShop = null;
 }
Пример #4
0
 /// <summary>
 /// 执行
 /// </summary>
 /// <param name="shop"></param>
 /// <param name="onSuccess"></param>
 /// <param name="onError"></param>
 public void invoke(IBaseShop shop,
                    UnityAction onSuccess = null, UnityAction onError = null)
 {
     this.shop = shop; invoke(onSuccess, onError);
 }