public void StartGame() { Log.Info("Starting game?"); // TODO: Only do clients marked as ready. PlayingClients = new List <Client>(Client.All); GameStarted = true; WaitingToStart = false; // Set the active course // Spawn balls for all clients foreach (var cl in PlayingClients) { Log.Info($"Creating ball for {cl.Name}"); var ball = new GolfBall(); cl.Pawn = ball; ball.ResetPosition(Course.CurrentHole.SpawnPosition, Course.CurrentHole.SpawnAngles); } }
protected void ResetBall(GolfBall ball) { ball.ResetPosition(Course.CurrentHole.SpawnPosition, Course.CurrentHole.SpawnAngles); }