} // enum public SecondaryWeapon(int knifeLength, KnifeType typeKnife, ColorType color, string creator, int year, int firePower, bool automatic, int serialNumber, string name, string uriImg, double price, int currentAmout, int starterAmount) : base(color, creator, year, firePower, automatic, serialNumber, name, uriImg, price, currentAmout, starterAmount) { KnifeLength = knifeLength; TypeKnife = typeKnife; ObjType = AbstractItemId.SecondaryWeapon; } // ctor
public static bool IsKnifeOpened(KnifeType knifeType) { if (PlayerPrefs.GetInt(AppConstans.KNIFE_IS_OPENED + knifeType, 0) == 0) { return(false); } else { return(true); } }
public static void SetOpenStatusForKnife(KnifeType knifeType) { PlayerPrefs.SetInt(AppConstans.KNIFE_IS_OPENED + knifeType, 1); }
public static void SetKnifeType(KnifeType knifeType) { PlayerPrefs.SetString(AppConstans.KNIFE_TYPE, "" + knifeType); Debug.Log("" + knifeType); }
public SecondaryWeapon(int Id, int knifeLength, KnifeType typeKnife, string creator, int year, int firePower, bool automatic, string name, Uri uriImg, double price, int currentAmout, int starterAmount) : base(Id, creator, year, firePower, automatic, name, uriImg, price, currentAmout, starterAmount) { KnifeLength = knifeLength; TypeKnife = typeKnife; }
public SecondaryWeaponDTO(SecondaryWeapon item) : base(item) { KnifeLength = item.KnifeLength; TypeKnife = item.TypeKnife; }