コード例 #1
0
 private static CallHandler GetInstance()
 {
     if (_instance == null)
     {
         GameObject cloudGoodsObject = new GameObject("_CloudGoods");
         cloudGoodsObject.AddComponent <CallHandler>();
         _instance = cloudGoodsObject.GetComponent <CallHandler>();
     }
     return(_instance);
 }
コード例 #2
0
        static void GetServerTime(CallHandler cg)
        {
            cg.StartCoroutine(cg.ServiceGetString(cg.callObjectCreator.CreateGetServerTimeObject(), x =>
            {
                cg.CalculateServerClientTimeDifference(int.Parse(x));
                isInitialized = true;

                if (CloudGoodsInitilized != null)
                {
                    CloudGoodsInitilized();
                }
            }));
        }
コード例 #3
0
        static void GetServerTime(CallHandler cg)
        {
            cg.StartCoroutine(cg.ServiceGetString(cg.callObjectCreator.CreateGetServerTimeObject(), x =>
            {
                cg.CalculateServerClientTimeDifference(int.Parse(x));
                isInitialized = true;

                if (CloudGoodsInitilized != null)
                    CloudGoodsInitilized();
            }));
        }
コード例 #4
0
 private static CallHandler GetInstance()
 {
     if (_instance == null)
     {
         GameObject cloudGoodsObject = new GameObject("_CloudGoods");
         cloudGoodsObject.AddComponent<CallHandler>();
         _instance = cloudGoodsObject.GetComponent<CallHandler>();
     }
     return _instance;
 }