"NullReferenceException: Object reference not set to an instance of an object
bl_LobbyUI.OnLanguageChange (System.Collections.Generic.Dictionary`2[TKey,TValue] lang) (at "
Error language
- Lovatto
- Admin
- Posts: 1834
- Joined: Sun Dec 07, 2014 3:18 pm
- Contact:
Hi,
Try this:
In the bottom of the script bl_LobbyRoomCreatorUI.cs -> replace the getter property: public static bl_LobbyRoomCreatorUI Instance
with this:
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;
}