Exemplo n.º 1
0
    public void Start()
    {
        itemdetails = GameObject.Find("InventoryCanvas").GetComponent <DisplayItemDetails>();

        craftUI = GameObject.Find("ShopStateSave").GetComponent <ShopStatesReference>().craftingUI;

        character = GameObject.FindGameObjectWithTag("Player").GetComponentInChildren <Animator>();
    }
Exemplo n.º 2
0
    // Start is called before the first frame update
    void Start()
    {
        materialpanel = GameObject.Find("ShopStateSave").GetComponent <ShopStatesReference>().materialPanel;

        mainCamera = GameObject.Find("Main_ThirdPersonCamera");

        CraftCamera = GameObject.Find("Crafting_Cam");

        inventoryUI = GameObject.Find("InventoryCanvas");

        CraftCamera.SetActive(false);

        defImage = ResultPanel.GetComponent <Image>().sprite;

        itemDetails = GameObject.Find("InventoryCanvas").GetComponent <DisplayItemDetails>();
    }