예제 #1
0
    // aiChance < 0 => ai plays honestly
    public void Start(float aiChance = -1)
    {
        _playerWins    = 0;
        _aiWins        = 0;
        _aiCheatChance = aiChance;

        OnRoundStarted?.Invoke();
        OnScoreUpdated?.Invoke($"{_playerWins} : {_aiWins}");
        Debug.Log("New game started!");
    }
예제 #2
0
 public static void RoundStarted(WaveType waveType)
 {
     OnRoundStarted?.Invoke(waveType);
 }