Files
3d-bianpo/Assets/Scripts/App/AppMain.cs
2026-03-03 11:30:53 +08:00

39 lines
915 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Runtime.InteropServices;
using System.Text;
using UnityEngine;
using UnityEngine.Events;
public class AppMain : MonoBehaviour
{
public static AppMain Instance;
public List<Transform> pointList = new List<Transform>();
public Color color1;
public Color color2;
void Awake()
{
//单例对象
Instance = this;
//初始化
AppCache.Init();
ActionCenter.Instance.Init();
}
void Start()
{
//初始化主页
AppCache.OpenPage(AppCache.cameraType);
AppCache.OpenPageDelay(PageType.Icon01, 2f);
AppCache.OpenPageDelay(PageType.Icon02, 2f);
AppCache.OpenPageDelay(PageType.Icon03, 2f);
AppCache.OpenPageDelay(PageType.Icon04, 2f);
AppCache.OpenPageDelay(PageType.Icon05, 2f);
}
}