private void Start() { feedbackText.text = ""; if (GameObject.FindGameObjectWithTag("Cursor")) { cursor = GameObject.FindGameObjectWithTag("Cursor").GetComponent <CursorMod>(); } rectTrans = GetComponent <RectTransform>(); if (GameObject.FindGameObjectWithTag("Manager")) { manager = GameObject.FindGameObjectWithTag("Manager").GetComponent <GameManager>(); } }
private void Awake() { rectTransform = GetComponent <RectTransform>(); canvasGroup = GetComponent <CanvasGroup>(); if (GameObject.FindGameObjectWithTag("Cursor")) { cursor = GameObject.FindGameObjectWithTag("Cursor").GetComponent <CursorMod>(); } if (GameObject.FindGameObjectWithTag("Manager")) { manager = GameObject.FindGameObjectWithTag("Manager").GetComponent <GameManager>(); } }