/// <summary> /// 機体を指定して機体を作成 /// </summary> public Ship InstantiateShip(ToolBox.ShipData shipData, Color color) { //機体を実体化 GameObject g = (GameObject)Instantiate(emptyObject); Ship ship = g.AddComponent <Ship>(); //有効化 ship.Activate(shipData, this, color); return(ship); }