Ejemplo n.º 1
0
 public void NextSlash()
 {
     currentSlashIdx = slashIdx;
     currentSlash    = slashes[currentSlashIdx];
     slashIdx++;
     if (slashIdx == maxSlash)
     {
         slashIdx = 0;
     }
 }
Ejemplo n.º 2
0
 public SlashLogic(float timeToWait, ref List <ISlashInfo> slashes)
 {
     this.slashIdx   = 0;
     this.timeToWait = timeToWait;
     this.slashes    = slashes;
     this.maxSlash   = slashes.Count;
     if (maxSlash > 0)
     {
         currentSlash         = this.slashes[slashIdx];
         this.currentSlashIdx = slashIdx;
     }
 }
Ejemplo n.º 3
0
 public void Reset()
 {
     slashIdx        = 0;
     currentSlashIdx = slashIdx;
     currentSlash    = slashes[slashIdx];
 }