using System; using UnityEngine; using YooAsset; namespace Game { public class GameEntry { private static Game game; public static void Init(GameObject go, EPlayMode playMode, int index, Action callback) { Debug.Log("GameEntry"); // this.game = new Game(); // var go = GameObject.Find("Global"); // var global = go.GetComponent(); // game = new Game(global.gameObject, global.playMode, GameInitType.None); game = new Game(go, playMode, (GameInitType)index); callback?.Invoke(); } } }