Assets/Scripts/UI/ClickEffect.cs | ●●●●● patch | view | raw | blame | history |
Assets/Scripts/UI/ClickEffect.cs
@@ -45,11 +45,15 @@ { if (Application.isMobilePlatform) { Touch touch = Input.GetTouch(0); if (touch.phase == TouchPhase.Began) if (Input.touchCount > 0) { PlayFX(touch.position); Touch touch = Input.GetTouch(0); if (touch.phase == TouchPhase.Began) { PlayFX(touch.position); } } // for (int i = 0; i < Input.touchCount; ++i) // { @@ -68,7 +72,7 @@ private void PlayFX(Vector2 tapPos) { if (Time.timeScale < 0.0001f) return; RecycleEffectc fx = CreateFX(); RectTransform fxRectTrans = fx.gameObject.GetComponent<RectTransform>();