private void LooseToNeighs()
        {
            var msg = new Loose()
            {
                ReceiversIds = neighbours.Keys,
                SenderId     = Id
            };

            connection.InvokeAsync(nameof(Loose), msg);
        }
Example #2
0
    void FixedUpdate()
    {
        if (gameState == GameState.doPlay)
        {
            if (stopTime)
            {
                gameTime = gameTime - 1 * Time.deltaTime;

                HUD.Instance.UpdateScoreValue(gameTime);

                if (gameTime <= 0)
                {
                    if (once)
                    {
                        Loose?.Invoke();
                        once = false;
                    }
                    gameTime = 0;
                }
            }
        }
    }
Example #3
0
 public Task Status(Loose message)
 {
     return(orchestrator.SendMessage(nameof(Loose), message));
 }
Example #4
0
 public void Lost()
 {
     Loose?.Invoke();
     stopTime = false;
 }
Example #5
0
 protected virtual void OnLoose() => Loose?.Invoke(this);