void Start() { currentAction = InteractStates.isNotInteracting; try { hover = GetComponent <Hover>(); } catch { Debug.Log("Cant find Hover Script"); } }
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"); } }
void OnEnable() { hover = FindObjectOfType <Hover>(); player = GameObject.FindGameObjectWithTag("Player"); }