Beispiel #1
0
        void Start()
        {
            currentAction = InteractStates.isNotInteracting;

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

            catch
            {
                Debug.Log("Cant find Hover Script");
            }
        }
Beispiel #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");
            }
        }
Beispiel #3
0
 void OnEnable()
 {
     hover  = FindObjectOfType <Hover>();
     player = GameObject.FindGameObjectWithTag("Player");
 }