Skip to content

The register input interface priority work correct? #13

@watsonsong

Description

@watsonsong

The blow code:

for (int i = numInterfaces - 1; i >= 0; i--) { if (_inputInterfaces[i] != null && _inputInterfaces[i].Priority <= inputInterface.Priority) { _inputInterfaces.Add(inputInterface); //Debug.LogFormat("Registered {0} at {1}. Total of {2}", inputInterface.GetType(), i, _inputInterfaces.Count); break; } }

The inputInterface seems always added into the last but add to the index i?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions