예제 #1
0
    public void DisRegisterEffect(CameraPosEffect effect)
    {
        var node = effectToNode[effect];

        effectToNode.Remove(effect);
        effects.Remove(node);
    }
예제 #2
0
    public void RegisterEffect(CameraPosEffect effect)
    {
        var node = effects.First;

        while (node != null)
        {
            if (node.Value.priority > effect.priority)
            {
                effects.AddBefore(node, effect);
                return;
            }
            node = node.Next;
        }
        effectToNode.Add(effect, effects.AddLast(effect));
    }
예제 #3
0
 public CameraPosEffect(CameraPosEffect cpe)
 {
     cameraPos = cpe.cameraPos;
     mainPos   = cpe.mainPos;
     priority  = cpe.priority;
 }