private static CallHandler GetInstance() { if (_instance == null) { GameObject cloudGoodsObject = new GameObject("_CloudGoods"); cloudGoodsObject.AddComponent <CallHandler>(); _instance = cloudGoodsObject.GetComponent <CallHandler>(); } return(_instance); }
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; }