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(); }
public WeaponProxy(IWeapon weapon, UnlockWeapon unlockWeapon) { _weapon = weapon; _unlockWeapon = unlockWeapon; }