예제 #1
0
 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>();
 }
예제 #2
0
 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);
 }
예제 #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;
 }
예제 #4
0
 private void Awake()
 {
     WS        = GameObject.Find("Store").GetComponent <websockets>();
     articleUI = GameObject.Find("ArticleUI").GetComponent <ArticleUI>();
 }
예제 #5
0
 void Awake()
 {
     WS = GameObject.Find("Store").GetComponent <websockets>();
 }