From 78e14d93c46238881339f33a56c81275c55d5089 Mon Sep 17 00:00:00 2001 From: liuzhiwei <liuzhiwei@qq.com> Date: Wed, 04 Nov 2020 14:02:54 +0800 Subject: [PATCH] Merge branch 'master' of http://172.16.1.52:8090/r/GemBattle into master --- Assets/Scripts/Common/GameUtils.cs | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/Assets/Scripts/Common/GameUtils.cs b/Assets/Scripts/Common/GameUtils.cs index b09b36e..d747118 100644 --- a/Assets/Scripts/Common/GameUtils.cs +++ b/Assets/Scripts/Common/GameUtils.cs @@ -28,6 +28,16 @@ return tmp; } + public static List<float> GetFloatList(JsonData jsData) + { + List<float> tmp = new List<float>(); + for (int i = 0; i <jsData.Count; i++) + { + tmp.Add(float.Parse(jsData[i].ToString())); + } + return tmp; + } + public static string GetString(string s) { if (string.IsNullOrEmpty(s)) -- Gitblit v1.9.1