void SceneLoaded() { switch (SceneManager.GetActiveScene().name) { case "H": { RPCClient_Plugin.ChangeId("HScene"); break; } case "Studio": { RPCClient_Plugin.ChangeId("Studio"); break; } } }
void SceneLoaded() { if (FindObjectOfType <StudioScene>()) { RPCClient_Plugin.ChangeId("Studio"); } else if (FindObjectOfType <FreeHScene>() && !FindObjectOfType <FreeHCharaSelect>()) { RPCClient_Plugin.ChangeId("FreeHSelect"); } else if (FindObjectOfType <CustomScene>()) { RPCClient_Plugin.ChangeId("Maker"); } else if (FindObjectOfType <HSceneProc>()) { RPCClient_Plugin.ChangeId("FreeH"); } else { RPCClient_Plugin.ChangeId(""); } }
public void OnLevelWasLoaded(int level) { switch (SceneManager.GetActiveScene().name) { case "Studio": { RPCClient_Plugin.ChangeId("StudioNeo"); break; } case "HScene": { RPCClient_Plugin.ChangeId("HScene"); break; } case "CustomScene": { RPCClient_Plugin.ChangeId("Maker"); break; } } }