MoralisFailureException: Moralis must be started before accessing this object

Hello everyone, I’m experimenting with Unity and Moralis. I need help with GetNativeBalance. My code is not working even though it is a very simple request. I am working with sample scene(introduction). My code is as below and it gives the error in the title.

    public async void OnConnectToServer(WCSessionData arg0)
    {
        NativeBalance bal =  await MoralisUnity.Moralis.Web3Api.Account.GetNativeBalance(arg0.accounts[0] , ChainList.eth);
        Debug.Log(bal.Balance);
    }

When I change my code as below, this is the error;
“ApiException: Moralis must be initialized before use.”

    public async void OnConnectToServer(WCSessionData arg0)
    {
        NativeBalance bal =  await 
        MoralisUnity.Web3Api.MoralisClient.Web3Api.Account.GetNativeBalance(arg0.accounts[0] , 
        ChainList.eth);
        Debug.Log(bal.Balance);
    }

How was the connection established without initializing? I think there is a connection because the address is taken correctly. In fact, this function is called with the Connected event.
what’s the problem?

Which SDK version are you using? Which file is this code in and how do you run this function?

Latest in github (v1.2.11)

MoralisClient.cs

        public static Web3ApiClient Web3Api
        {
            get => instance.client.IsInitialized ? instance.client : throw new ApiException(109, "Moralis must be initialized before use.");
        }

I mean how do you call OnConnectToServer? You can look at the CongratulationsController.cs script in the demo scene to get an idea of how you can call the API.

I play the scene and click the connect button. I connect my Metamask wallet with the QR code. The function I sent above has been added to the Connection event. So if there is a connection, the function works.

How have you done this exactly?