22 lines
617 B
C#
22 lines
617 B
C#
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<Global>();
|
|
// game = new Game(global.gameObject, global.playMode, GameInitType.None);
|
|
game = new Game(go, playMode, (GameInitType)index);
|
|
callback?.Invoke();
|
|
}
|
|
}
|
|
} |