| | |
| | | Display(); |
| | | if (result == 2) |
| | | { |
| | | var height = girdsGo.GetComponent<RectTransform>().rect.height; |
| | | var width = girdsGo.GetComponent<RectTransform>().rect.width; |
| | | boomRowEffect.transform.localPosition = new Vector3(0, |
| | | -((BeautyMMManager.Instance.clickGirdPos.x - 1) * gridHeight + gridHeight / 2), 0); |
| | | height/2-((BeautyMMManager.Instance.clickGirdPos.x - 1) * gridHeight + gridHeight / 2), 0); |
| | | boomRowEffect.Play(); |
| | | boomColEffect.transform.localPosition = new Vector3((BeautyMMManager.Instance.clickGirdPos.y - 1) * gridWidth + gridWidth / 2, boomColEffect.transform.localPosition.y, 0); |
| | | boomColEffect.transform.localPosition = new Vector3(((BeautyMMManager.Instance.clickGirdPos.y - 1) * gridWidth + gridWidth / 2) - width/2, 0, 0); |
| | | boomColEffect.Play(); |
| | | } |
| | | |