示例#1
0
 private void Start()
 {
     melee.GenMelee();
     melee.weapon.item.durability  = 100;
     melee.weapon.item.name        = "Knife";
     melee.weapon.item.description = "This is a sharp kitchen knife";
     melee.weapon.damage           = 12;
     melee.weapon.damageType       = "sharp";
     melee.weapon.isEquiped        = true;
     melee.range            = 5;
     melee.weapon.item.icon = GetComponent <Texture2D>();
 }