Example #1
0
    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>();
        }
    }
Example #2
0
    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>();
        }
    }