Exemplo n.º 1
0
        public void Refresh(DateTime now, Type.Battle.EquipmentItem equipmentItem)
        {
            var finishedAt = equipmentItem.CooldownFinishedAtAsDateTime;

            button.interactable = now >= finishedAt;
            cooldownText.text   = button.interactable ?
                                  string.Empty :
                                  string.Format("{0:00}", (finishedAt - now).TotalSeconds);
        }
Exemplo n.º 2
0
 public void SendEquipment(long actorId, List <TyphenApi.Type.Submarine.Battle.EquipmentItem> torpedos, TyphenApi.Type.Submarine.Battle.EquipmentItem pinger, TyphenApi.Type.Submarine.Battle.EquipmentItem watcher)
 {
     session.Send((int)MessageType.Equipment, new TyphenApi.Type.Submarine.Battle.Equipment()
     {
         ActorId  = actorId,
         Torpedos = torpedos,
         Pinger   = pinger,
         Watcher  = watcher,
     });
 }