/// <summary> /// Effectを初期化 /// </summary> private void InitEffect() { townEffect = new TownEffect( new Vector2(Def.WindowDef.WINDOW_WIDTH / 2 + 300, 300), gameDevice); townEffect.Initialize(); effectTimer = new Timer(1.2f); effectTimer.Initialize(); townEffect.SetScaleRate(effectTimer.Rate() * 1.5f + 1); }
/// <summary> /// Effectを更新 /// </summary> private void UpdateEffect() { effectTimer.Update(); townEffect.SetScaleRate(effectTimer.Rate() * 1.5f + 1); }