// Use this for initialization void Start() { StC = GameObject.FindGameObjectWithTag("StateController").GetComponent <LW_StateController> (); OA = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <LW_OpenAnimation> (); //SC = GameObject.FindGameObjectWithTag ("SpinningCard").GetComponent<LW_SpinningCard> (); CardHolder = GameObject.FindGameObjectWithTag("CardHolder").gameObject; Button btn = GetComponent <Button> (); btn.onClick.AddListener(MoveBack); }
// Use this for initialization void Start() { IC = GameObject.FindGameObjectWithTag("InventoryController").GetComponent <InventoryController> (); StC = GameObject.FindGameObjectWithTag("StateController").GetComponent <LW_StateController> (); OA = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <LW_OpenAnimation> (); //SC = GameObject.FindGameObjectWithTag ("SpinningCard").GetComponent<LW_SpinningCard> (); CC = GameObject.FindGameObjectWithTag("CreateCards").GetComponent <LW_CreateCards> (); DiscPlaces = GameObject.FindGameObjectWithTag("Lootbox").transform.GetChild(0).gameObject; Button btn = GetComponent <Button> (); btn.onClick.AddListener(OpenCrate); }