예제 #1
0
파일: StringBullet.cs 프로젝트: abarabone/a
    // 時間・伸張の限界をチェックし、エンドフェイズへ進める -----------------------------



    /// <summary>
    /// 制限時間を越えていたら、指定されたエンドフェイズ(糸が消えゆく処理)へ移行する。
    /// </summary>
    void checkToShiftToEndPhaseOnOverTimeLimit(StringParticlePool.StringUnit line, UpdateProc endPhase)
    {
        if (isOverLifeTime(line))
        {
            line.time = 0.0f;

            line.update = endPhase;
        }
    }
예제 #2
0
파일: StringBullet.cs 프로젝트: abarabone/a
    /// <summary>
    /// 最大伸張を越えていたら、指定されたエンドフェイズ(糸が消えゆく処理)へ移行する。
    /// </summary>
    void checkToShiftToEndPhaseInOverStretch(StringParticlePool.StringUnit line, Vector3 startpos, Vector3 endpos, UpdateProc endPhase)
    {
        if (isOverStretch(startpos, endpos))
        {
            line.time = 0.0f;

            line.update = endPhase;
        }
    }