Exemple #1
0
 public Ammo(string NameOfItem,
             string DescriptionOfItem,
             int ItemID,
             float WeightOfItem,
             Item.ItemSpawnPoint SpawnPointOfItem,
             Item.ItemRarity RarityOfItem,
             GameObject DragDropPrefabOfItem,
             GameObject PlacedPrefabOfItem,
             GameObject PickupPrefabOfItem,
             Vector2 DragOffsetOfItem)
 {
     ammoName           = NameOfItem;
     ammoDesc           = DescriptionOfItem;
     ammoID             = ItemID;
     ammoWeight         = WeightOfItem;
     weaponSpawnPoint   = SpawnPointOfItem;
     weaponRarity       = RarityOfItem;
     ammoDragDropPrefab = DragDropPrefabOfItem;
     ammoPlacedPrefab   = PlacedPrefabOfItem;
     ammoPickupPrefab   = PickupPrefabOfItem;
     dragOffset         = DragOffsetOfItem;
 }
Exemple #2
0
 public Weapon(string NameOfItem,
               string DescriptionOfItem,
               int ItemID,
               int ItemAimFieldOfView,
               float WeightOfItem,
               WeaponOfType TypeOfItem,
               Item.ItemSpawnPoint SpawnPointOfItem,
               Item.ItemRarity RarityOfItem,
               GameObject DragDropPrefabOfItem,
               GameObject PickupPrefabOfItem,
               Vector2 DragOffsetOfItem)
 {
     weaponName           = NameOfItem;
     weaponDesc           = DescriptionOfItem;
     weaponID             = ItemID;
     weaponAimFieldOfView = ItemAimFieldOfView;
     weaponWeight         = WeightOfItem;
     weaponType           = TypeOfItem;
     weaponSpawnPoint     = SpawnPointOfItem;
     weaponRarity         = RarityOfItem;
     weaponDragDropPrefab = DragDropPrefabOfItem;
     weaponPickupPrefab   = PickupPrefabOfItem;
     dragOffset           = DragOffsetOfItem;
 }