Example #1
0
 public override string ToString()
 {
     return(string.Format(
                "Game [{0}] {1}. Player count: {2}  Human player count: {3}  Start time: {4}  Current Time: {5}",
                Id, this.ScenarioId, Players.Count, CountNonComputerPlayers,
                GameStartTime.ToString(), GameCurrentTime.ToString()));
 }
Example #2
0
 void Update()
 {
     if (GameInfo != null)
     {
         //Debug.Log(GameCurrentTime.ToShortTimeString());
         GameCurrentTime = GameCurrentTime.AddSeconds(Time.deltaTime * GameInfo.RealTimeCompressionFactor);
     }
     if (Input.GetKeyDown(KeyCode.L))
     {
         Application.CaptureScreenshot(string.Format("Screenshots/{0}.png", DateTime.Now.Millisecond));
     }
 }