using System.Collections; using System.Collections.Generic; using UnityEngine; public class control : MonoBehaviour { float x, y; public GameObject huruff; public int kontrol; // Start is called before the first frame update void Start() { x = transform.localScale.x; y = transform.localScale.y; } void OnMouseDown() { GetComponent().Play(); transform.localScale = new Vector2(x * 1.2f, y / 1.2f); } void OnMouseUp() { transform.localScale = new Vector2(x, y); huruff.GetComponent().control(kontrol); } // Update is called once per frame void Update() { } }