private void LooseToNeighs() { var msg = new Loose() { ReceiversIds = neighbours.Keys, SenderId = Id }; connection.InvokeAsync(nameof(Loose), msg); }
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; } } } }
public Task Status(Loose message) { return(orchestrator.SendMessage(nameof(Loose), message)); }
public void Lost() { Loose?.Invoke(); stopTime = false; }
protected virtual void OnLoose() => Loose?.Invoke(this);