public void DisRegisterEffect(CameraPosEffect effect) { var node = effectToNode[effect]; effectToNode.Remove(effect); effects.Remove(node); }
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)); }
public CameraPosEffect(CameraPosEffect cpe) { cameraPos = cpe.cameraPos; mainPos = cpe.mainPos; priority = cpe.priority; }