public void EquipWeapon(AbstractWeaponProduct weapon) { var otherWeapons = ReturnAllWeapons(); foreach (AbstractWeaponProduct otherWeapon in otherWeapons) { otherWeapon.gameObject.SetActive(false); } equipedWeapon = weapon; }
public virtual void CombineWith(AbstractWeaponProduct other) { // prevent self interaction if (other == this) { return; } if (other.gameObject == null) { return; } //this.damage += (int)(0.1f * other.damage); GameObject.Destroy(other.gameObject); other = null; }
public virtual void Display(AbstractWeaponProduct weaponPointer, Hashtable stats) { weapon = weaponPointer; this.stats = stats; StartCoroutine("LoadIconImage"); }