// Start is called before the first frame update
private void Start()
{
FadeManager.FadeIn(1.0f);
common_data.dificulity = dificulity;
common_data.phase = phase;
appealText = GetComponent <ApealText>();
if (common_data.is_stage_select)
{
appealText.DOAppeal(0);
appealText.ChangeText("フェーズ" + phase.ToString(), 1);
appealText.DOAppeal(1);
}
factory = new Dictionary <string, BaseState>();
// シーンを登録
RegisterState();
// csvファイルからステージのデータを持ってくる
if (common_data.is_stage_select)
{
common_data.stage_datas.Add(new Dificulity(5, 1.0f, 1, 2));
}
else
{
LoadStageData();
}
// sceneが何故かずっとnullなのでしょうがなく
state = factory["Start"];
state.Init(common_data);
text.text = "Start";
}