private void OnAssetsLoaded(AssetPackage[] assetPackages) { _animationManager.Create(assetPackages); _sequenceManager.Initialize(); }
/// <summary> /// 最初のフレームのアップデート前 /// </summary> void Start() { // SQM初期化 SequenceManager.Initialize(); if (SequenceManager.NowSQID.Value == SQID.新規開始) { m_TaskDataList = new Dictionary <int, TaskData>(); m_NewTID = 0; int index; // 初期化処理 // !!hoge:Test!! for (var y = 0; y < 4; y++) { for (var x = 0; x < 4; x++) { index = GetNewTID(); m_TaskDataList.Add(index, new GridData(index, x, y)); } } for (var y = 0; y < 4; y++) { for (var x = 0; x < 4; x++) { index = GetNewTID(); m_TaskDataList.Add(index, new PanelData(index, x, y, (x == 0 && y == 0) ? PanelState.Open : PanelState.Close));//Plyの初期位置だけ空ける } } index = GetNewTID(); m_TaskDataList.Add(index, new NanatoData(index, 0, 0)); index = GetNewTID(); m_TaskDataList.Add(index, new MagiPeaceData(index, 0, 0, MagiPeaceData.MagiPeaceType.MagiPeace01, 0)); index = GetNewTID(); m_TaskDataList.Add(index, new EnmData(index, 3, 3, 0, EnmType.Enm01, true));//Hide index = GetNewTID(); m_TaskDataList.Add(index, new EnmData(index, 3, 2, 0, EnmType.Enm01, false));//Active // 演出家 index = GetNewTID(); m_TaskDataList.Add(index, new ProducerData(index)); index = GetNewTID(); m_TaskDataList.Add(index, new UIData(index)); // 各Taskの準備 foreach (TaskData tData in m_TaskDataList.Values) { tData.Ready(); } SequenceManager.SendMessage(MessageType.FloorInitEnd, -1); } else { // 復元処理 } }