@@ -445,9 +445,10 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: f1828554d8ffa12449b221fe29b2c32c, type: 3}
m_Name:
m_EditorClassIdentifier:
- DebugMode: 0
- CatchException: 1
- DebugModeGo: {fileID: 0}
+ DebugMode: 1
+ CatchException: 0
+ DebugModeGo: {fileID: 1264531325540048, guid: b22fd2d9abc702d43ac62a412537d4e9,
+ type: 2}
--- !u!4 &1833966245
Transform:
m_ObjectHideFlags: 0
@@ -345,7 +345,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
- m_IsActive: 0
+ m_IsActive: 1
--- !u!1 &1122321127892574
GameObject:
m_ObjectHideFlags: 1
@@ -0,0 +1,9 @@
+fileFormatVersion: 2
+guid: 75d5d8c18d6f9464499020d692f744c3
+folderAsset: yes
+timeCreated: 1510190400
+licenseType: Pro
+DefaultImporter:
+ userData:
+ assetBundleName:
+ assetBundleVariant:
@@ -0,0 +1,43 @@
+using System.Collections;
+using System.Collections.Generic;
+using LitJson;
+using UnityEngine;
+
+public enum GiftType
+{
+ 金币=0,
+ 钻石 = 1,
+ 礼包 = 2,
+ 花朵 = 3,
+ 服装 = 4,
+ 开垦土地=5,
+}
+public class ThanksGift
+ #region Config
+ private static Dictionary<int, List<KV<GiftType, int>>> GiftDictionary = new Dictionary<int, List<KV<GiftType, int>>>();
+ private static Dictionary<char, GiftType> TypeDictionary = new Dictionary<char, GiftType>
+ {
+ {'g', GiftType.金币},
+ {'d', GiftType.钻石},
+ {'p', GiftType.礼包},
+ {'f', GiftType.花朵},
+ {'c', GiftType.服装},
+ {'s', GiftType.开垦土地},
+ };
+ #endregion
+ public static void GetGiftList(JsonData jsonData)
+ }
+ private static float CloseRatio = 0.25f;
+ public static void Test(int packID)
@@ -0,0 +1,12 @@
+guid: 64c83e4501dd7024f8b4ba5ff6f125d8
+timeCreated: 1510190507
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
@@ -1016,6 +1016,17 @@ public class ManaServer : Regist
}
+ public static void GetThanksGiftInfo(Action<JsonData> callback, Action failed)
+ JsonData rootJson = new JsonData();
+ JsonData json = new JsonData();
+ json["i"] = 7;
+ json["g"] = "g100";
+ rootJson.Add(json);
+ Debug.Log(rootJson.ToJson());
public static void Report()
{
ManaReso.Get("Lb_Info").TweenBacCG();
@@ -400,6 +400,8 @@ public class Pack : SkillRoot
UseA();
SetActive();
+ ThanksGift.Test(ID_);
@@ -1,3 +1,20 @@
+充值返礼
+ 注意返礼的开始时间和结束时间
+ 购买礼包前要拉取到返礼表
+ 购买成功后可能获得的内容有
+ 金币
+ 钻石
+ 礼包
+ 花朵
+ 服装(如果已拥有 需要进行价值转换0.25)
+ 开垦土地
+ 反礼后要弹出提示框
//开启公告
//关闭DebugMode 开启CatchException