Ejemplo n.º 1
0
    public void RemoveLinks()
    {
        foreach (KeyValuePair <GameObject, Link> pair in links)
        {
            Link link = pair.Value;
            switch (link.LinkKind)
            {
            case (LinkKind.onBeginStart):
                ConnectorBase.RemoveOnBeginStart(link.MediaCondition, link.MediaAction);
                break;

            case (LinkKind.onBeginStop):
                ConnectorBase.RemoveOnBeginStop(link.MediaCondition, link.MediaAction);
                break;

            case (LinkKind.onEndStart):
                ConnectorBase.RemoveOnEndStart(link.MediaCondition, link.MediaAction);
                break;

            case (LinkKind.onEndStop):
                ConnectorBase.RemoveOnEndStop(link.MediaCondition, link.MediaAction);
                break;
            }
        }
    }