document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. void Update()
  2. {
  3.     if (flipXValue < 1 && EventSystem.current.currentSelectedGameObject != null)
  4.     {
  5.         GameObject tileToFlip = EventSystem.current.currentSelectedGameObject;
  6.         flipXValue += 0.2f;
  7.         tileToFlip.transform.localScale = new Vector3(flipXValue, tileToFlip.transform.localScale.y, tileToFlip.transform.localScale.z);
  8.     }
  9. }
');