void All_Text_FinPro() { switch (fin_step) { case State_Step.MOVED: //移動 pos = transform.position; pos.y += up_spd; transform.position = pos; if (pos.y > MAX) { fin_step = State_Step.COLOR_INV; } break; case State_Step.COLOR_INV: //移動が終われば表示 color.alpha += alpha_spd; for (int i = text_pro.Length - 2; i < text_pro.Length; i++) { text_pro[i].color = new Color(color.red, color.green, color.blue, color.alpha); if (text_pro[i].color.a > 1) { Indication(Command.CONTINUE, false); pro = Pro_Status.OPERABLE; } } break; } }
//--------------------------------- // 次のテキストへ //--------------------------------- void All_Text_Higher() { TextColor(); color.alpha += alpha_spd * 0.2f; if (color.alpha > 1) { pro = Pro_Status.ALL_TEXT_UP; } }
//--------------------------------- // 次のテキストへ //--------------------------------- void One_Text_Pro() { if (now_text < text_pro.Length - 2) { Text_Alpha_Lower(now_text); } else { color.alpha = 1.0f; pro = Pro_Status.ALL_TEXT_ALPHA_DOWN; } }
//--------------------------------- // 全体のテキストでの演出 //--------------------------------- void All_Text_Lower() { TextColor(); if (color.alpha > 0.5f) { color.alpha -= alpha_spd; } else { pro = Pro_Status.ALL_TEXT_ALPHA_UP; } }