//イラスト2をフェードイン、イラスト3をフェードアウトさせる private void actOnPhase1() { _time += getDeltaTime(); setAlpha(1 - _time, Dandelion_growth[(int)_phase]); setAlpha(_time, Dandelion_growth[(int)_phase + 1]); if (_time >= 1.5f) { _phase = PHASE_GROWTH.PHASE_2; _time = 0.0f; } }
//イラスト1をフェードイン、イラスト2をフェードアウトさせる private void actOnPhase0() { _time += getDeltaTime(); setAlpha(1 - _time, Sakura_growth[(int)_phase]); setAlpha(_time, Sakura_growth[(int)_phase + 1]); if (_time >= 1.5f) { _phase = PHASE_GROWTH.PHASE_1; _time = 0.0f; } }