/// <summary> /// ゲームから退出します。 /// </summary> public void GameExit() { IGameExit exit = GetComponentInChildren <IGameExit>(); if (exit != null) { exit.Exit(); } #if UNITY_EDITOR else { Debug.LogError("GameManagerの子供にIGameExitを実装してください。"); } #endif }
public AudioTask(IGameExit gameexit, string id, AudioOpenAl audio) { this.gameexit = gameexit; this.filename = id; this.audio = audio; }
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(); }