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

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

        character = GameObject.FindGameObjectWithTag("Player").GetComponentInChildren <Animator>();
    }
    // 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>();
    }