Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Update()
- {
- if (flipXValue < 1 && EventSystem.current.currentSelectedGameObject != null)
- {
- GameObject tileToFlip = EventSystem.current.currentSelectedGameObject;
- flipXValue += 0.2f;
- tileToFlip.transform.localScale = new Vector3(flipXValue, tileToFlip.transform.localScale.y, tileToFlip.transform.localScale.z);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment