-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWeapon.cs
55 lines (50 loc) · 1.58 KB
/
Weapon.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
using UnityEngine;
using System.Collections;
[System.Serializable]
public class Weapon
{
public string weaponName;
public string weaponDesc;
public int weaponID;
public int weaponAimFieldOfView;
public float weaponWeight;
public WeaponOfType weaponType;
public Item.ItemSpawnPoint weaponSpawnPoint;
public Item.ItemRarity weaponRarity;
public GameObject weaponDragDropPrefab;
public GameObject weaponPickupPrefab;
public Vector2 dragOffset;
public Vector2 sizeInSlot;
public enum WeaponOfType
{
Melee,
SMG,
Pistol,
Rifle,
Sniper
}
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;
}
}