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); }
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; }
private void Awake() { WS = GameObject.Find("Store").GetComponent <websockets>(); articleUI = GameObject.Find("ArticleUI").GetComponent <ArticleUI>(); }
void Awake() { WS = GameObject.Find("Store").GetComponent <websockets>(); }