record demos automatically
This commit is contained in:
@@ -171,7 +171,8 @@ namespace Game
|
||||
else if (playerId == NetworkManager.LocalPlayerClientId)
|
||||
{
|
||||
Console.Print("local player: " + playerId.ToString());
|
||||
input = new PlayerInputLocal(); // TODO: support recording
|
||||
string demoPath = System.IO.Path.Combine(AssetManager.DemoPath, $"{DateTimeOffset.Now.ToUnixTimeSeconds()}.gdem");
|
||||
input = new PlayerInputLocal(demoPath); // TODO: support recording
|
||||
PlayerId = playerId;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user