void Start() { player = FindObjectOfType <Interact>(); playerCamera = FindObjectOfType <Camera>(); housesetup = FindObjectOfType <HouseIdentifier>().houseSetup; StartCoroutine("DataCollector"); }
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"); } }
// Use this for initialization void Awake() { fpsController = GetComponent <FirstPersonController>(); player = GetComponentInChildren <Interact>(); }
/// <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>(); }