// Use this for initialization void Start() { currentMission = DataManager.Instance.missionData [DataManager.Instance.selectMission]; EventManager.OnSpawnDialog.AddListener(Stop); EventManager.OnDisappearDialog.AddListener(Go); enemy = new List <GameObject> (); //mission = new Mission(); //dummy //maxEnemy = mission.enemyMaxNum; //ダイアログ表示など Instantiate(UIInfo, canvas.transform); }
void LoadMissionData() { //dataMission m = new dataMission (); for (int i = 0; i < 1; i++) { dataMission m = new dataMission() { enemyMaxNum = 2, id = 0, type = MissionType.DestroyAll }; m.enemies = new List <DataEnemy> (); for (int j = 0; j < 1; j++) { m.enemies.Add(new DataEnemy() { num = 0, hp = 0 }); } missionData.Add(m); } }