This commit is contained in:
2025-11-13 17:40:28 +08:00
parent 962ab49609
commit 10156da245
5503 changed files with 805282 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
/*******************************************************************************
Copyright © 2015-2022 PICO Technology Co., Ltd.All rights reserved.
NOTICEAll information contained herein is, and remains the property of
PICO Technology Co., Ltd. The intellectual and technical concepts
contained herein are proprietary to PICO Technology Co., Ltd. and may be
covered by patents, patents in process, and are protected by trade secret or
copyright law. Dissemination of this information or reproduction of this
material is strictly forbidden unless prior written permission is obtained from
PICO Technology Co., Ltd.
*******************************************************************************/
using UnityEngine;
namespace Pico.Platform.Framework
{
public class Runner : MonoBehaviour
{
public static void RegisterGameObject()
{
var name = "Pico.Platform.Runner";
GameObject g = GameObject.Find(name);
if (g == null)
{
g = new GameObject(name);
}
if (g.GetComponent<Runner>() == null)
{
g.AddComponent<Runner>();
}
}
void Awake()
{
DontDestroyOnLoad(gameObject);
}
void Update()
{
Looper.ProcessMessages();
}
void OnApplicationQuit()
{
Looper.Clear();
if (Application.isEditor || Application.platform == RuntimePlatform.WindowsPlayer || Application.platform == RuntimePlatform.WindowsEditor)
{
CLIB.ppf_PcUnInitialize();
}
}
}
}