// Start is called before the first frame update
    void Start()
    {
        normal    = Time.timeScale;
        inventory = BackupInventory.instance;
        inventory.changedCallback += UpdateUI;

        invent = false;

        crafting = false;

        Player = GameObject.Find("Character");

        mainCam = GameObject.Find("Main_ThirdPersonCamera");

        Inventorycam = GameObject.Find("Inventory_Cam");

        //itemDisplay = GameObject.Find("Item_DetailPanel");

        Inventorycam.SetActive(false);

        //inventoryUI = GameObject.Find("PlayerInventory");

        //itemslotParent = GameObject.Find("Inventory");

        slots = itemslotParent.GetComponentsInChildren <ItemSlot>();

        if (FemChar.gameObject.activeSelf)
        {
        }
        else
        {
        }
    }
 private void Awake()
 {
     if (instance != null)
     {
         Debug.LogWarning("More than one instance of backup inventory found");
         return;
     }
     instance = this;
 }
Exemple #3
0
    // Start is called before the first frame update
    void Start()
    {
        //dis = transform.GetComponentsInChildren<Image>();

        pInv = GameObject.Find("Character").GetComponent <BackupInventory>();
    }