- Home /
Question by
$$anonymous$$ · Oct 24, 2019 at 02:03 AM ·
c#namespace
how to access script not derived from monobehavior ?
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
}
}
}
Comment
Best Answer
Answer by $$anonymous$$ · Oct 24, 2019 at 03:57 AM
Prototype.NetworkLobby.LobbyManager.s_Singleton.GoBackButton();