예제 #1
0
    private void OnSceneLoaded(Scene scene, LoadSceneMode mode)
    {
        int level = sceneHelper.FindLevelByBuildIndex(scene.buildIndex);

        if (level != -1)
        {
            discordActivity.State = $"Playing Level {level}";
            UpdateActivity();
        }
        else if (discordActivity.State != "Playing")
        {
            discordActivity.State = "Playing";
            UpdateActivity();
        }
    }