// Use this for initialization void Start() { scriptAnda = player.GetComponent <VRAutoWalk>(); esseAlvo = GetComponent <Transform>(); minhaPosicao = GetComponent <Transform>(); collider = GetComponent <SphereCollider>(); }
void Awake() { if (auxiliarMissao == null) { auxiliarMissao = FindObjectOfType <AuxiliarMissao>(); } isVR = GameManager.gameMode.Equals(GameMode.VR) ? true : false; if (isVR) { //this.gameObject.SetActive(true); } else if (!isVR) { //this.gameObject.SetActive(false); } if (gameManager == null) { gameManager = GameManager.FindObjectOfType <GameManager>(); } PlayerVRAutoWalk = gameManager.VRPlayer.GetComponent <VRAutoWalk>(); //PlayerVRAutoWalk = GameObject.FindObjectOfType<VRAutoWalk>(); if (audio == null) { audio = GetComponent <AudioSource>(); } npcInterativos = FindObjectsOfType <Interativo>(); }
void Awake() { if (audio == null) { audio = GetComponent <AudioSource>(); } PlayerVRAutoWalk = GameObject.FindObjectOfType <VRAutoWalk>(); }
void Awake() { player = GameObject.FindObjectOfType <VRAutoWalk>(); if (!itemDatabase) { Debug.LogWarning("[MobileVRInventory] Warning: VRInventory requires a reference to an InventoryItemDatabase."); } if (inventoryPositionTransform == null) { inventoryPositionTransform = Camera.main.transform.Find("InventoryPosition"); } //mainCamera = Camera.main.transform; if (Application.isPlaying && autoSave) { Load(); } }
void Awake() { animator = iconGaze.GetComponent <Animator>(); PlayerVRAutoWalk = GameObject.FindObjectOfType <VRAutoWalk>(); }