MVC shop project for software architecture, in Unity.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

16 lines
551 B

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// The scripted weapon generates a weapon type scripted item, adding attack and damage variables to it
/// </summary>
[CreateAssetMenu]//Allows creating ViewConfig objects in Assets -> Create menu in the Unity Editor
public class ScriptedWeapon : ScriptedItem
{
public int Attack;
public int Damage;
public override Item GenerateItem()
{
return new ItemWeapon(Name, Sprite.name, Price, Attack, Damage,Description,Rarity);
}
}