public void EndTurn() { foreach (var Targets in myTargets.Values) { Targets.Clear(); } foreach (var TurnNumber in this.myTurnNumber.Values) { TurnNumber.Decrement(); } }
private string GenerateArgumentsOrFilter(string basestring) { return(basestring .Replace("{Executable}", Engine.PlayerExecutable) .Replace("{EnginePath}", Engine.GetPlayerExecutableDirectory()) .Replace("{ModPath}", Mod.Path) .Replace("{SavePath}", Mod.SavePath) .Replace("{Password}", Password) .Replace("{GameCode}", Code) .Replace("{TurnNumber}", TurnNumber.ToString()) .Replace("{PlayerNumber}", PlayerNumber.ToString()) .Replace("{PlayerNumber2}", PlayerNumber.ToString("00")) .Replace("{PlayerNumber3}", PlayerNumber.ToString("000")) .Replace("{PlayerNumber4}", PlayerNumber.ToString("0000"))); }
public void UpdateTurnNumberText() { Debug.Log("Set turn number text UI to " + TurnNumber.ToString()); turnNumberText.text = TurnNumber.ToString(); }