Ejemplo n.º 1
0
 public DebugGUI(IMonoDriver monoDriver)
 {
     this.monoDriver     = monoDriver;
     this.itCanBeVisible = true;
     UnityEngine.Application.logMessageReceived += HandleLog;
     currentOrientation = Screen.orientation;
     RefreshWindow();
 }
Ejemplo n.º 2
0
        /// <summary>
        /// 构造函数
        /// </summary>
        public GamepadServer(IApplication application, IMonoDriver monoDriver)
        {
            this.monoDriver     = monoDriver;
            this.application    = application;
            this.removeChannels = new List <KChannel>();

            InitKcpServer();
            InitUdpServer();
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 构建Sdk工具类
        /// </summary>
        public SdkTool(IMonoDriver monoDriver, ILog log, IJson json, Unity2AndroidHelper unity2Android, Component component = null)
        {
            this.m_MonoDriver = monoDriver;
            this.m_Json       = json;
            this.m_Log        = log;

            if (component != null)
            {
                InitComponent(component);
            }

            m_BridgeClass = unity2Android.BridgeClass;
        }