50 lines
1.4 KiB
C#
50 lines
1.4 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
|
|
using Sirenix.OdinInspector;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace ET
|
|
{
|
|
public class UnityRoot:MonoBehaviour
|
|
{
|
|
public static UnityRoot Instance;
|
|
[FoldoutGroup("GameObjectGroup")]
|
|
public Transform Player;
|
|
[FoldoutGroup("GameObjectGroup")]
|
|
public Transform[] GameObjectParentGroup;
|
|
[FoldoutGroup("ResourceGroup")]
|
|
public Transform ObjPoolParent;
|
|
[FoldoutGroup("ResourceGroup")]
|
|
[Header(" 对象池分组")]
|
|
[SerializeField]
|
|
public GameObjectPoolEntity[] GameObjectPoolGroups;
|
|
[FoldoutGroup("ResourceGroup")]
|
|
[Header("锁定的资源")]
|
|
[SerializeField]
|
|
public string[] LockedAssetBundle;
|
|
[FoldoutGroup("UIGroup")]
|
|
[Header("标准分辨率宽度")]
|
|
[SerializeField]
|
|
public int m_StandardWidth = 1280;
|
|
[FoldoutGroup("UIGroup")]
|
|
[Header("标准分辨率高度")]
|
|
[SerializeField]
|
|
public int m_StandardHeight = 720;
|
|
[FoldoutGroup("UIGroup")]
|
|
public Canvas m_UIRootCanvas;
|
|
[FoldoutGroup("UIGroup")]
|
|
public Camera m_UICamera;
|
|
[FoldoutGroup("UIGroup")]
|
|
public CanvasScaler m_UIRootCanvasScaler;
|
|
|
|
private void Awake()
|
|
{
|
|
Instance = this;
|
|
DontDestroyOnLoad(this);
|
|
|
|
}
|
|
}
|
|
} |