public bool Deserialize(JSON_LoginInfoParam json) { if (json == null) { return(false); } this.iname = json.iname; this.path = json.path; this.scene = (LoginInfoParam.SelectScene)json.scene; DateTime result1 = DateTime.MinValue; DateTime result2 = DateTime.MaxValue; if (!string.IsNullOrEmpty(json.begin_at)) { DateTime.TryParse(json.begin_at, out result1); } if (!string.IsNullOrEmpty(json.end_at)) { DateTime.TryParse(json.end_at, out result2); } this.begin_at = TimeManager.FromDateTime(result1); this.end_at = TimeManager.FromDateTime(result2); this.conditions = (LoginInfoParam.DispConditions)json.conditions; this.conditions_value = json.conditions_value; return(true); }
private void Start() { LoginInfoParam[] activeLoginInfos = MonoSingleton <GameManager> .GetInstanceDirect().MasterParam.GetActiveLoginInfos(); if (activeLoginInfos == null || activeLoginInfos.Length <= 0) { FlowNode_GameObject.ActivateOutputLinks((Component)this, 0); } else { int index = Random.Range(0, activeLoginInfos.Length); this.mSelectScene = activeLoginInfos[index].scene; string[] strArray = activeLoginInfos[index].path.Split('/'); if (strArray == null || strArray.Length < 2) { return; } this.StartCoroutine(this.LoadImages(strArray[0], strArray[1])); } }