Exemplo n.º 1
0
 protected override void Start()
 {
     base.Start();
     ActionController = new PlayerActionController(this);
     _playerWidnow.InitComponents();
     PlayerInventoryController = new PlayerInventoryController(this);
     PlayerEquipmentController = new PlayerEquipmentController(this);
 }
Exemplo n.º 2
0
 public void InitInventory(PlayerEquipmentController playerEquipment)
 {
     this.playerEquipment = playerEquipment;
     for (int i = 0; i < items.Count; i++)
     {
         itemToCountMap.Add(items[i].GetItem(), items[i].GetItemCount());
     }
 }
Exemplo n.º 3
0
 public abstract void AssignItemToPlayer(PlayerEquipmentController playerEquipment);
Exemplo n.º 4
0
 public override void AssignItemToPlayer(PlayerEquipmentController playerEquipment)
 {
     playerEquipment.AssingArmorItem(this);
 }
 public override void AssignItemToPlayer(PlayerEquipmentController playerEquipment)
 {
     playerEquipment.AssingHealthPotionItem(this);
 }