From df50daf0ca2cd0c442b10f83fdf0d25758fd9d2d Mon Sep 17 00:00:00 2001
From: liuzhiwei <liuzhiwei@qq.com>
Date: Tue, 17 Nov 2020 16:30:26 +0800
Subject: [PATCH] Merge branch 'master' of http://172.16.1.52:8090/r/GemBattle into master

---
 Assets/Scripts/UI/ClickEffect.cs |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/Assets/Scripts/UI/ClickEffect.cs b/Assets/Scripts/UI/ClickEffect.cs
index b1a7353..c5b6396 100644
--- a/Assets/Scripts/UI/ClickEffect.cs
+++ b/Assets/Scripts/UI/ClickEffect.cs
@@ -45,14 +45,15 @@
     {
         if (Application.isMobilePlatform)
         {
-            for (int i = 0; i < Input.touchCount; ++i)
+            Touch touch = Input.GetTouch(0);
+            if (touch.phase == TouchPhase.Began)
             {
-                Touch touch = Input.GetTouch(i);
-                if (touch.phase == TouchPhase.Began)
-                {
-                    PlayFX(touch.position);
-                }
+                PlayFX(touch.position);
             }
+            // for (int i = 0; i < Input.touchCount; ++i)
+            // {
+
+            // }
         }
         else
         {
@@ -75,7 +76,7 @@
         fxRectTrans.anchoredPosition3D = fxLocalPos;
         //fxRectTrans.localScale = Vector3.one;
         fx.gameObject.SetActive(true);
-        fx.StartPlay(fxLifeTime,RecycleFX);
+        fx.StartPlay(fxLifeTime, RecycleFX);
     }
 
 

--
Gitblit v1.9.1