private void Awake() { pool = new TouchScript.Utils.ObjectPool <TouchProxyBase>(10, instantiateProxy, null, clearProxy); rect = transform as RectTransform; if (rect == null) { Debug.LogError("TouchVisualizer must be on an UI element!"); enabled = false; } updateDefaultSize(); }
private void Awake() { pool = new TouchScript.Utils.ObjectPool<TouchProxyBase>(10, instantiateProxy, null, clearProxy); rect = transform as RectTransform; if (rect == null) { Debug.LogError("TouchVisualizer must be on an UI element!"); enabled = false; } updateDefaultSize(); }