void Awake() { if (instance == null) { instance = this; } foreach (var el in GunSettings) { guns.Add(el.Name, el); } CurrentGunSetting = guns["Hend"]; }
public void CollectGun(GunObjects gun) { Guns.Add(gun); foreach (var item in Guns) { Debug.Log(item); if (item.name == "Nuke") { Debug.Log("NUKE 'EM!!!!!!!!"); } else { Debug.Log("Get the Nuke!!"); } } }