/// <summary> /// 进入商店 /// </summary> /// <param name="shop"></param> public void startShop(IBaseShop shop) { currentShop = shop; }
/// <summary> /// 生成 /// </summary> /// <returns></returns> public abstract void generate(IBaseShop baseShop);
/// <summary> /// 离开商店 /// </summary> /// <param name="shop"></param> public void terminateShop(IBaseShop shop) { currentShop = null; }
/// <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); }