升级框架版本

This commit is contained in:
Bob.Song
2025-11-12 17:24:02 +08:00
parent 4059c207c0
commit 5e6119a073
2246 changed files with 6233 additions and 313 deletions

View File

@@ -0,0 +1,28 @@
using System.Collections;
using UnityEngine;
using FairyGUI;
/// <summary>
/// Demonstrated the simple flow of a game.
/// </summary>
public class CutSceneMain : MonoBehaviour
{
void Start()
{
Application.targetFrameRate = 60;
Stage.inst.onKeyDown.Add(OnKeyDown);
UIPackage.AddPackage("UI/CutScene");
LevelManager.inst.Init();
LevelManager.inst.LoadLevel("scene1");
}
void OnKeyDown(EventContext context)
{
if (context.inputEvent.keyCode == KeyCode.Escape)
{
Application.Quit();
}
}
}