﻿using UnityEngine;

public class OnActivateRefresh : MonoBehaviour
{
    private ServerUI _serverUi;
    private void Start()
    {
        _serverUi = FindObjectOfType<ServerUI>();
    }

    private void OnEnable()
    {
        _serverUi.GetServerList();
    }
}
﻿using UnityEngine;

public class OnActivateRefresh : MonoBehaviour
{
    private ServerUI _serverUi;
    private void Start()
    {
        _serverUi = FindObjectOfType<ServerUI>();
        _serverUi.GetServerList();
    }

    private void OnEnable()
    {
        if(_serverUi)_serverUi.GetServerList();
    }
}
Fix the server list update
Fix the server list update

