예제 #1
0
    // Use this for initialization
    void Start()
    {
        foreach (string effectPathName in mEffectPathNameArray)
        {
            EffectPerformanceData data = new EffectPerformanceData(effectPathName);
            mEffectPerformanceDataList.Add(data);
        }

        mIndex  = 0;
        mFinish = false;
    }
예제 #2
0
 public static int SortByAverageFPS(EffectPerformanceData a, EffectPerformanceData b)
 {
     if (a.mAverageFPS < b.mAverageFPS)
     {
         return(-1);
     }
     else if (a.mAverageFPS > b.mAverageFPS)
     {
         return(1);
     }
     else
     {
         return(0);
     }
 }
예제 #3
0
 public static int SortByAverageParticleSize(EffectPerformanceData a, EffectPerformanceData b)
 {
     if (a.mAverageParticleSize > b.mAverageParticleSize)
     {
         return(-1);
     }
     else if (a.mAverageParticleSize < b.mAverageParticleSize)
     {
         return(1);
     }
     else
     {
         return(0);
     }
 }