Пример #1
0
    public void EquipWeapon(AbstractWeaponProduct weapon)
    {
        var otherWeapons = ReturnAllWeapons();

        foreach (AbstractWeaponProduct otherWeapon in otherWeapons)
        {
            otherWeapon.gameObject.SetActive(false);
        }
        equipedWeapon = weapon;
    }
Пример #2
0
    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;
    }
Пример #3
0
 public virtual void Display(AbstractWeaponProduct weaponPointer, Hashtable stats)
 {
     weapon     = weaponPointer;
     this.stats = stats;
     StartCoroutine("LoadIconImage");
 }