private void Start()
        {
            var unlockWeapon = new UnlockWeapon(false);
            var weapon       = new Weapon();
            var weaponProxy  = new WeaponProxy(weapon, unlockWeapon);

            weaponProxy.Fire();
            unlockWeapon.IsUnlock = true;
            weaponProxy.Fire();
        }
Exemplo n.º 2
0
 public WeaponProxy(IWeapon weapon, UnlockWeapon unlockWeapon)
 {
     _weapon       = weapon;
     _unlockWeapon = unlockWeapon;
 }