/// <summary> /// Used as an initializer for the LoginManager both on Server and Client side. /// </summary> public void UpdateApiAddress(string address, NetworkConnection connection, Action <NetworkConnection, CharacterResponse> spawnPlayerAction) { loginServerClient = new LoginServerClient(address, this); apiAddress = address; this.spawnPlayerAction = spawnPlayerAction; this.connection = connection; }
/// <summary> /// Used as an initializer for the LoginManager both on Server and Client side. /// </summary> public void UpdateApiAddress(string address, Action <CharacterResponse> spawnPlayerAction) { LoginServerClient = new LoginServerClient(address, this); apiAddress = address; this.spawnPlayerAction = spawnPlayerAction; }
private void Start() { LoginServerClient = new LoginServerClient(apiAddress, this); }