Exemplo n.º 1
0
        /// <summary>
        /// ゲームから退出します。
        /// </summary>
        public void GameExit()
        {
            IGameExit exit = GetComponentInChildren <IGameExit>();

            if (exit != null)
            {
                exit.Exit();
            }
#if UNITY_EDITOR
            else
            {
                Debug.LogError("GameManagerの子供にIGameExitを実装してください。");
            }
#endif
        }
Exemplo n.º 2
0
 public AudioTask(IGameExit gameexit, string id, AudioOpenAl audio)
 {
     this.gameexit = gameexit;
     this.filename = id;
     this.audio = audio;
 }
Exemplo n.º 3
0
        public void Start()
        {
            w = new ManicDiggerGameWindow();
            audio = new AudioOpenAl();
            w.audio = audio;
            MakeGame(true);

            // Defaults for connectioninfo
            if (connectinfo == null)
            {
                connectinfo = new ServerConnectInfo();
                connectinfo.url = "127.0.0.1";
                connectinfo.port = 25570;
                connectinfo.username = "******";
            }

            // Temporary plugin of ServerConnectInfo.  Need to come back and clean this up.
            if (connectinfo.url != null)
            {
                w.GameUrl = connectinfo.url + ":" + connectinfo.port;
            }
            if (connectinfo.username != null)
            {
                w.username = connectinfo.username;
            }

            this.exit = w;
            w.Run();
        }
Exemplo n.º 4
0
 public AudioTask(IGameExit gameexit, string id, AudioOpenAl audio)
 {
     this.gameexit = gameexit;
     this.filename = id;
     this.audio = audio;
 }