Skip to content

Commit

Permalink
rename console to _console
Browse files Browse the repository at this point in the history
  • Loading branch information
stilnat committed Aug 10, 2023
1 parent 62e86d1 commit d94bc81
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class CommandsController : NetworkActor
/// </summary>
private const int TabLength = 20;

[SerializeField] private ConsolePanelView console;
[SerializeField] private ConsolePanelView _console;

protected override void OnStart()
{
Expand Down Expand Up @@ -178,13 +178,13 @@ private void RpcPerformOnClient(NetworkConnection conn, string command)
string[] splitCommand = command.Split(' ');
string commandName = splitCommand[0];
string answer = _allCommands[commandName].Perform(command.Split().Skip(1).ToArray());
console.AddText(answer);
_console.AddText(answer);
}

[TargetRpc]
private void RpcCommandAnswer(NetworkConnection conn, string answer)
{
console.AddText(answer);
_console.AddText(answer);
}

[ServerOrClient]
Expand All @@ -196,7 +196,7 @@ private void CommandAnswer(NetworkConnection conn, string answer)
}
else
{
console.AddText(answer);
_console.AddText(answer);
}
}

Expand Down

0 comments on commit d94bc81

Please sign in to comment.