//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------------------------------ using CustomComponent; using UnityEngine; /// /// 游戏入口。 /// public partial class GameEntry : MonoBehaviour { public static BuiltinDataComponent BuiltinData { get; private set; } public static CombineComponent Combine { get; private set; } public static DialogComponent Dialog { get; private set; } public static AIChatComponent AIChat { get; private set; } private static void InitCustomComponents() { BuiltinData = UnityGameFramework.Runtime.GameEntry.GetComponent(); Combine = UnityGameFramework.Runtime.GameEntry.GetComponent(); Dialog = UnityGameFramework.Runtime.GameEntry.GetComponent(); AIChat = UnityGameFramework.Runtime.GameEntry.GetComponent(); } }