Exemple #1
0
 private static CallHandler GetInstance()
 {
     if (_instance == null)
     {
         GameObject cloudGoodsObject = new GameObject("_CloudGoods");
         cloudGoodsObject.AddComponent <CallHandler>();
         _instance = cloudGoodsObject.GetComponent <CallHandler>();
     }
     return(_instance);
 }
Exemple #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();
                }
            }));
        }
        static void GetServerTime(CallHandler cg)
        {
            cg.StartCoroutine(cg.ServiceGetString(cg.callObjectCreator.CreateGetServerTimeObject(), x =>
            {
                cg.CalculateServerClientTimeDifference(int.Parse(x));
                isInitialized = true;

                if (CloudGoodsInitilized != null)
                    CloudGoodsInitilized();
            }));
        }
 private static CallHandler GetInstance()
 {
     if (_instance == null)
     {
         GameObject cloudGoodsObject = new GameObject("_CloudGoods");
         cloudGoodsObject.AddComponent<CallHandler>();
         _instance = cloudGoodsObject.GetComponent<CallHandler>();
     }
     return _instance;
 }