Пример #1
0
 public override void HandleEvent(EventMessage e)
 {
     if (e is ObjectBallsSpawnedMessage ballsMessage)
     {
         locationReferenceUI.Init();
         locationReferenceUI.PrepareBallTransforms(ballsMessage.ballsArray);
     }
     else if (e is SetTeamUIMessage teamMessage)
     {
         locationReferenceUI.PrepareTeammateTransform(teamMessage.teammate);
     }
     else if (e is PlayerHealthChangeMessage)
     {
         damageIndicator.Show();
     }
     else if (e is EndGameMessage)
     {
         GetComponent <TemporaryUI>().CheckScoreAndEndGame();
         TurnOffAllUI(transform);
     }
 }