コード例 #1
0
ファイル: InventoryUI.cs プロジェクト: S00181590/The-Emporium
    // 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
        {
        }
    }
コード例 #2
0
 private void Awake()
 {
     if (instance != null)
     {
         Debug.LogWarning("More than one instance of backup inventory found");
         return;
     }
     instance = this;
 }
コード例 #3
0
    // Start is called before the first frame update
    void Start()
    {
        //dis = transform.GetComponentsInChildren<Image>();

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