/// <summary> /// ランチャーダイアログの表示/非表示 /// </summary> public void LauncherDialog(ToolBox.Launcher l) { //表示してるものを全て消す HideMenu(); //表示 indicateStack.Push(dialog_bulletSelect); indicateStack.Push(dialog_launcher); launcher.SetLauncher(l); }
/// <summary> /// ランチャーを設定 /// </summary> public void SetLauncher(ToolBox.Launcher l) { //初期化確認 if (!flagInit) { Init(); } //選択ランチャーに設定 selectLauncher = l; //ランチャー性能 launcher.SetPerformance(l.basePerformance, true); //弾装備確認 bool flagBullet = false; if (gm.bulletDic.ContainsKey(l.bulletCategory)) { if (gm.bulletDic[l.bulletCategory].ContainsKey(l.bulletID)) { flagBullet = true; } } //弾性能など設定 if (flagBullet) { //設定済み //弾データを取得 ToolBox.Bullet b = gm.bulletDic[l.bulletCategory][l.bulletID]; SetBullet(b); } else { //Performance bullet.SetPerformance("-"); total.SetPerformance("-"); //BulletIndicator SetBulletIndicator(null); } }
public LauncherInfo(ToolBox.Launcher launcher, GameObject bullet) : this() { this.launcher = launcher; this.bullet = bullet; }
public GameObject bullet; //インスタンス //コンストラクタ public LauncherInfo() { launcher = null; bullet = null; }