public void PlayVoice(EscortDeckModel deck) { if (deck.GetFlagShip() != null) { ShipUtils.PlayShipVoice(deck.GetFlagShip(), 2); } }
public void UpdateEscortDeck(EscortDeckModel deck) { bool flag = Banner.ShipModel == null || Banner.ShipModel != deck.GetFlagShip(); Banner.SetShipData(deck.GetFlagShip()); for (int i = 0; i < shipTypeIcons.Length; i++) { ShipModel ship = deck.GetShip(i + 1); if (ship != null) { shipTypeIcons[i].spriteName = ShipTypeIconName[ship.ShipType]; ChangeColor(ship, shipTypeIcons[i]); } else { shipTypeIcons[i].spriteName = string.Empty; } } if (flag) { updateView(0.2f); } }