示例#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);
     });
 }
示例#3
0
 public void PlayShipAnimation(UIBattleShip.AnimationName iName)
 {
     this._animShipAnimation.Play(iName.ToString());
 }