Beispiel #1
0
 public void Load(AmmoSaveData ammo)
 {
     currentAmmo = ammo;
     inpt_cooldownBonus.text = currentAmmo.cooldownBonus.ToString ();
     inpt_cooldownMultiplier.text = currentAmmo.cooldownMultiplier.ToString ();
     inpt_damage.text = currentAmmo.damage.ToString ();
     sprite_icon.spriteName = currentAmmo.icon;
     inpt_name.text = currentAmmo.name;
     inpt_lifetime.text = currentAmmo.lifetime.ToString ();
     inpt_splashRadius.text = currentAmmo.splashRadius.ToString ();
     inpt_speed.text = currentAmmo.speed.ToString ();
     sprite_sprite.spriteName = currentAmmo.sprite;
     chk_isHoming.isChecked = currentAmmo.isHoming;
     chk_isSelfDestruct.isChecked = currentAmmo.isSelfDestruct;
 }
Beispiel #2
0
 void Awake()
 {
     int r = Random.Range (1000, 9999);
     currentAmmo = new AmmoSaveData ("Equipment" + r);
 }