Exemplo n.º 1
0
        void Start()
        {
            currentAction = InteractStates.isNotInteracting;

            try
            {
                hover = GetComponent <Hover>();
            }

            catch
            {
                Debug.Log("Cant find Hover Script");
            }
        }
Exemplo n.º 2
0
        void Start()
        {
            player      = FindObjectOfType <Interact>();
            playerHover = FindObjectOfType <Hover>();
            uiElements.Add(textBackground);
            uiElements.Add(mouseImg);
            uiElements.Add(wasdImg);
            uiElements.Add(rkeyImg);
            DeactivateImgs();

            if (tips.gotMovementTip == false)
            {
                giveTip(tips.movementTip);
                ActivateElements(true, true, false);
                tips.gotMovementTip = true;
                StartCoroutine("tipTimer");
            }
        }
Exemplo n.º 3
0
 void OnEnable()
 {
     hover  = FindObjectOfType <Hover>();
     player = GameObject.FindGameObjectWithTag("Player");
 }