| | |
| | | { |
| | | 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 |
| | | { |
| | |
| | | fxRectTrans.anchoredPosition3D = fxLocalPos; |
| | | //fxRectTrans.localScale = Vector3.one; |
| | | fx.gameObject.SetActive(true); |
| | | fx.StartPlay(fxLifeTime,RecycleFX); |
| | | fx.StartPlay(fxLifeTime, RecycleFX); |
| | | } |
| | | |
| | | |