Exemplo n.º 1
0
 public void FireAndForget(BaseEffect effect)
 {
     _fireAndForgetEffects.Add(effect);
 }
Exemplo n.º 2
0
 public void BakeBeginEffect(BaseEffect effect)
 {
     if (_state != 1)
         if (_state == 0)
             throw new Exception("BeginBake must be called before BakeBeginEffect");
     if (_choosenSortMode != SpriteSortMode.Immediate)
         throw new Exception("When using Effect stick to SpriteSortMode.Immediate.\nEffects won´t affect Sprite when deferred drawing is used");
     effect.Apply();
 }