private void Awake()
 {
     crossair   = UI_Camera.transform.GetComponentInChildren <Image>();
     interactUI = SteamVR_Actions._default.InteractUI;
     cart       = gameObject.transform.Find("Canvas/AddToCartBtn/AddToCart").GetComponent <cartHandler>();
     WS         = GameObject.Find("Store").GetComponent <websockets>();
 }
 protected override void Awake()
 {
     base.Awake();
     WS         = GameObject.Find("Store").GetComponent <websockets>();
     articleUI  = GameObject.Find("ArticleUI").GetComponent <ArticleUI>();
     cart       = GameObject.Find("ArticleUI/Canvas/AddToCartBtn/AddToCart").GetComponent <cartHandler>();
     buyHandler = GameObject.Find("Store/Checkout/CheckoutCanvas/Buy").GetComponent <BuyHandler>();
     dot        = m_Camera.GetComponentInChildren <Image>();
     m_Data     = new PointerEventData(eventSystem);
 }
Example #3
0
 private void Awake()
 {
     ws = GameObject.Find("Store").GetComponent <websockets>();
     hints.Add("ENDED", "Al momento il tuo assistente รจ in pausa. \nProva a richiamarlo dicendo: \"Computer avvia Shopper\"");
     hints.Add("STARTED", "Cosa puoi chiedermi: \n \"Aggiungi borsa al carrello\" \n \"Istruzioni\" \n \"Quanto costa jeans\" ");
     hints.Add("BOUGHT", "Cosa puoi chiedermi: \n \"Aggiungi borsa al carrello\" \n \"Istruzioni\" \n \"Quanto costa jeans\" ");
     hints.Add("CANBUY", "Cosa puoi chiedermi: \n \"Aggiungi borsa al carrello\" \n \"Istruzioni\" \n \"Quanto costa jeans\" \n \"Acquista\" ");
     gameObject.GetComponent <Text>().text = hints["ENDED"];
     fader = GameObject.FindGameObjectWithTag("Fader").GetComponent <UIFader>();
     gameObject.GetComponentInParent <CanvasGroup>().alpha = 0;
 }
Example #4
0
 private void Awake()
 {
     WS        = GameObject.Find("Store").GetComponent <websockets>();
     articleUI = GameObject.Find("ArticleUI").GetComponent <ArticleUI>();
 }
Example #5
0
 void Awake()
 {
     WS = GameObject.Find("Store").GetComponent <websockets>();
 }