Lower player name through Eve settings surface
This commit is contained in:
parent
9c63c0a1af
commit
65a5a56635
8 changed files with 111 additions and 38 deletions
|
|
@ -116,10 +116,22 @@ public class ActionGameManager : MonoBehaviour
|
|||
QueueRuntimePlayerSettingsCommit();
|
||||
}
|
||||
|
||||
public static bool CommitRuntimePlayerSettingsCommand(string command)
|
||||
public static bool CommitRuntimePlayerSettingsCommand(
|
||||
string command,
|
||||
IReadOnlyDictionary<string, string> payload = null)
|
||||
{
|
||||
switch (command)
|
||||
{
|
||||
case AetheriaRuntimePlayerSettingsCommands.SetPlayerName:
|
||||
if (payload != null && payload.TryGetValue("value", out var playerName))
|
||||
{
|
||||
CommitRuntimePlayerName(playerName);
|
||||
}
|
||||
else
|
||||
{
|
||||
CommitRuntimePlayerName("");
|
||||
}
|
||||
return true;
|
||||
case AetheriaRuntimePlayerSettingsCommands.CycleTemperatureUnit:
|
||||
CommitRuntimeTemperatureUnit(
|
||||
RuntimePlayerSettings.GameplaySettings.TemperatureUnit switch
|
||||
|
|
|
|||
Loading…
Reference in a new issue