Exemplo n.º 1
0
    private void Start()
    {
        inventory = _Inventory.instance;
        int numSlots = System.Enum.GetNames(typeof(EquipmentSlot)).Length;

        currentEquipment = new Equipment[numSlots];
    }
Exemplo n.º 2
0
 void Awake()
 {
     if (instance != null)
     {
         Debug.Log("More than one instance of _Inventory found!");
         return;
     }
     instance = this;
 }
Exemplo n.º 3
0
 void Awake()              // added by me
 {
     if (instance != null) // added by me
     {
         Debug.LogWarning(" More than one instance of Inventory found!");
         return;
     }// added by me
     instance = this;
 }
Exemplo n.º 4
0
    void Start()
    {
        int numSlot = System.Enum.GetNames(typeof(_EquipmentSlot)).Length;

        currentEquipments = new _Equipment[numSlot];
        currentMeshs      = new SkinnedMeshRenderer[numSlot];
        inventory         = _Inventory.instance;

        EquipDefaultEquipment();
    }
Exemplo n.º 5
0
 void Start()
 {
     inventory      = _Inventory.instance;
     inventorySlots = itemParent.GetComponentsInChildren <_InventorySlot> ();
     inventory.onItemChangedCallBack += UpdateUI;
 }
Exemplo n.º 6
0
 void Start()
 {
     instance = this;
     updatePanelSlots();
 }