Page 1 of 1

Error language

Posted: Sat Nov 27, 2021 7:32 pm
by Benzitczo
Problem how no idea mucho, and also check discord thanks
"NullReferenceException: Object reference not set to an instance of an object
bl_LobbyUI.OnLanguageChange (System.Collections.Generic.Dictionary`2[TKey,TValue] lang) (at "

Re: Error language

Posted: Sun Nov 28, 2021 4:36 am
by Lovatto
Hi,

Try this:

In the bottom of the script bl_LobbyRoomCreatorUI.cs -> replace the getter property: public static bl_LobbyRoomCreatorUI Instance
with this:

Code: Select all

public static bl_LobbyRoomCreatorUI Instance
    {
        get
        {
            if (_instance == null)
            {
                _instance = FindObjectOfType<bl_LobbyRoomCreatorUI>();
            }
            if (_instance == null && bl_LobbyUI.Instance != null)
            {
                _instance = bl_LobbyUI.Instance.GetComponentInChildren<bl_LobbyRoomCreatorUI>(true);
            }
            return _instance;
        }set => _instance = value;
    }