Exemple #1
0
 void Start()
 {
     player       = FindObjectOfType <Interact>();
     playerCamera = FindObjectOfType <Camera>();
     housesetup   = FindObjectOfType <HouseIdentifier>().houseSetup;
     StartCoroutine("DataCollector");
 }
Exemple #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");
            }
        }
Exemple #3
0
 // Use this for initialization
 void Awake()
 {
     fpsController = GetComponent <FirstPersonController>();
     player        = GetComponentInChildren <Interact>();
 }
Exemple #4
0
 /// <summary>
 /// Called every frame- shoots out a raycast and checks if anything within 2 units is interactable or not- will change the canInteract bool
 /// </summary>
 ///
 void Start()
 {
     player = FindObjectOfType <Interact>();
 }