Ejemplo n.º 1
0
        }                                        // 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
Ejemplo n.º 2
0
 public static bool IsKnifeOpened(KnifeType knifeType)
 {
     if (PlayerPrefs.GetInt(AppConstans.KNIFE_IS_OPENED + knifeType, 0) == 0)
     {
         return(false);
     }
     else
     {
         return(true);
     }
 }
Ejemplo n.º 3
0
 public static void SetOpenStatusForKnife(KnifeType knifeType)
 {
     PlayerPrefs.SetInt(AppConstans.KNIFE_IS_OPENED + knifeType, 1);
 }
Ejemplo n.º 4
0
 public static void SetKnifeType(KnifeType knifeType)
 {
     PlayerPrefs.SetString(AppConstans.KNIFE_TYPE, "" + knifeType);
     Debug.Log("" + knifeType);
 }
Ejemplo n.º 5
0
 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;
 }