Untitled
unknown
plain_text
7 months ago
1.8 kB
17
Indexable
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using static Stove.PCSDK.Base;
public class StoveDLCManager : MonoBehaviour
{
// 2. 클래스 내부에 initParam 선언
private StovePCInitializeParam initParam;
private void Awake()
{
STOVEPCSDK3Manager.Instance.StartRunCallbackLoop();
}
private void Start()
{
Initailze();
}
public void Initailze()
{
// 4. 발급 받은 적절한 값을 할당해주세요.
initParam = new StovePCInitializeParam
{
environment = "",
gameId = "",
applicationKey = ""
};
// 5. Base_RestartAppIfNecessaryAsync 호출
Base_RestartAppIfNecessaryAsync(initParam, 60_000, (CallbackResult callbackResult, bool restartAppIfNecessary) =>
{
if (restartAppIfNecessary)
{
// 런처를 통해 게임을 실행하지 않았므로 게임종료 처리를 진행합니다.
Debug.Log("Please run the game through the stove launcher.");
}
else
{
// Base SDK 초기화를 진행합니다.
Base_Initialize(initParam, (CallbackResult callbackResult2) =>
{
if (callbackResult2.result.IsSuccessful())
{
}
else
{
}
});
}
});
Debug.Log("Initailze Finish");
}
private void OnApplicationQuit()
{
Debug.Log("Application Quit");
Base_UnInitialize();
}
}
Editor is loading...
Leave a Comment