ScoreObjectMethodsGetScoreID(ListIScoreObject, IScoreObject) Method
Retrieves the ID of a given IScoreObject from an array of IScoreObjects.
Namespace: Alteruna.Multiplayer.UnityAssembly: Alteruna.Multiplayer.UnityFiles (in Alteruna.Multiplayer.UnityFiles.dll) Version: 1.0.0+c5328b35489e83c42e288435f5acf6115fd519e0
public static int GetScoreID(
this List<IScoreObject> scoreList,
IScoreObject score
)
- scoreList ListIScoreObject
- The array of IScoreObjects to search through.
- score IScoreObject
- The IScoreObject to find the ID for.
Int32The ID of the specified IScoreObject, if found.In Visual Basic and C#, you can call this method as an instance method on any object of type
ListIScoreObject. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
| KeyNotFoundException | Thrown if the IScoreObject is not found in the array. |