protected virtual void PlayShipAnimation(UIBattleShip ship, UIBattleShip.AnimationName iName, float delay) { Observable.Timer(TimeSpan.FromSeconds((double)delay)).Subscribe(delegate(long _) { SoundUtils.PlayShellingSE(this._listBattleShips.get_Item(0).shipModel); ShipUtils.PlayShellingVoive(ship.shipModel); ship.PlayShipAnimation(iName); }); }
protected virtual void PlayShipAnimation(UIBattleShip ship, UIBattleShip.AnimationName iName, float delay) { Observable.Timer(TimeSpan.FromSeconds(delay)).Subscribe(delegate { SoundUtils.PlayShellingSE(_listBattleShips[0].shipModel); ShipUtils.PlayShellingVoive(ship.shipModel); ship.PlayShipAnimation(iName); }); }
private void playShellingSE() { SoundUtils.PlayShellingSE(_clsAttacker); }