예제 #1
0
    public void Init(StatHandler statHandler, VesselAudioSystem audioSystem)
    {
        this.statHandler = statHandler;
        this.audioSystem = audioSystem;

        healthUpdater = this.GetComponent <IHealthUpdate>();
    }
예제 #2
0
    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();
    }
예제 #3
0
 public virtual void Init(string id, WeaponInfo weaponInfo, VesselAudioSystem audioSystem, AimAssist aimAssist, ProjectileType projectileType)
 {
 }