Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     scriptAnda   = player.GetComponent <VRAutoWalk>();
     esseAlvo     = GetComponent <Transform>();
     minhaPosicao = GetComponent <Transform>();
     collider     = GetComponent <SphereCollider>();
 }
Ejemplo n.º 2
0
    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>();
    }
Ejemplo n.º 3
0
    void Awake()
    {
        if (audio == null)
        {
            audio = GetComponent <AudioSource>();
        }

        PlayerVRAutoWalk = GameObject.FindObjectOfType <VRAutoWalk>();
    }
Ejemplo n.º 4
0
        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();
            }
        }
Ejemplo n.º 5
0
 void Awake()
 {
     animator         = iconGaze.GetComponent <Animator>();
     PlayerVRAutoWalk = GameObject.FindObjectOfType <VRAutoWalk>();
 }