system
1
namespace Prototype.NetworkLobby
{
public class LobbyManager : NetworkLobbyManager
{
public void GoBackButton()
{
backDelegate();
topPanel.isInGame = false;
}
}
}
another script
public class Escape : MonoBehaviour
{
void Update()
{
if (Input.GetKeyDown("f"))
{
// call GoBackButton(); from here
}
}
}
system
2
Prototype.NetworkLobby.LobbyManager.s_Singleton.GoBackButton();