예제 #1
0
 public override void Begin()
 {
     if (!Active)
     {
         currentAffector      = affectors[0];
         currentAffectorIndex = 0;
         currentAffector.Begin();
         base.Begin();
     }
 }
예제 #2
0
        void aff_End()
        {
            currentAffectorIndex++;
            if (currentAffectorIndex >= affectors.Count)
            {
                Active = false;
                FireEnd();
                return;
            }

            // TODO Affectors com duracao muito curta precisam ser tratados devidamente
            currentAffector = affectors[currentAffectorIndex];
            currentAffector.Begin();
        }
예제 #3
0
 public AffectorChain Add(AffectorFinite aff)
 {
     affectors.Add(aff);
     aff.End.Add(aff_End);
     return(this);
 }
예제 #4
0
 public AffectorSet Add(AffectorFinite aff, int startTime)
 {
     affectors.Add(aff, startTime);
     aff.End.Add(aff_End);
     return(this);
 }