Ejemplo n.º 1
0
    public static void CreateWeapon(WeaponTypes weaponType, WeaponTiers weaponTier, Transform parent = null)
    {
        GameObject weaponObject = new GameObject("Weapon", typeof(Weapon));

        weaponObject.GetComponent <Weapon>().SetWeaponStats(weaponType, weaponTier);
        weaponObject.transform.parent = parent;
    }
Ejemplo n.º 2
0
 public void SetWeaponStats(WeaponTypes weaponType, WeaponTiers weaponTier)
 {
     this.weaponType = weaponType;
     this.weaponTier = weaponTier;
     CheckWeaponStats();
 }