// 時間・伸張の限界をチェックし、エンドフェイズへ進める ----------------------------- /// <summary> /// 制限時間を越えていたら、指定されたエンドフェイズ(糸が消えゆく処理)へ移行する。 /// </summary> void checkToShiftToEndPhaseOnOverTimeLimit(StringParticlePool.StringUnit line, UpdateProc endPhase) { if (isOverLifeTime(line)) { line.time = 0.0f; line.update = endPhase; } }
/// <summary> /// 最大伸張を越えていたら、指定されたエンドフェイズ(糸が消えゆく処理)へ移行する。 /// </summary> void checkToShiftToEndPhaseInOverStretch(StringParticlePool.StringUnit line, Vector3 startpos, Vector3 endpos, UpdateProc endPhase) { if (isOverStretch(startpos, endpos)) { line.time = 0.0f; line.update = endPhase; } }