public void Init(StatHandler statHandler, VesselAudioSystem audioSystem) { this.statHandler = statHandler; this.audioSystem = audioSystem; healthUpdater = this.GetComponent <IHealthUpdate>(); }
public override void Init(string id, WeaponInfo weaponInfo, VesselAudioSystem audioSystem, AimAssist aimAssist, ProjectileType projectileType) { WeaponData weaponData = weaponInfo.weaponData; this.shooterID = id; this.audioSystem = audioSystem; this.fireRate = weaponData.fireRate; this.aimAssist = aimAssist; weaponSound = weaponData.fireSound; WeaponSettings settings = GameManager.Instance.gameSettings.weaponSettings; this.projectileData = settings.projectiles.Where(x => x.type == projectileType).First(); }
public virtual void Init(string id, WeaponInfo weaponInfo, VesselAudioSystem audioSystem, AimAssist aimAssist, ProjectileType projectileType) { }