Exemple #1
0
 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);
     });
 }
Exemple #3
0
 private void PlayShellingVoice()
 {
     ShipUtils.PlayShellingVoive(_clsAttacker);
 }