Updated getter in ModelList and cleaned Assembly

This commit is contained in:
CoudronJerome
2023-03-28 08:52:02 +02:00
parent be7457236c
commit dfdb2ab10b
4 changed files with 8 additions and 25 deletions

View File

@@ -23,9 +23,9 @@ public class ModelList : ScriptableObject
/// </summary>
/// <param name="modelIndex">ModelIndex of the model</param>
/// <returns>Model associated with this index, null if no model was found</returns>
public NNModel GetModelByIndex(ModelIndex modelIndex)
public NNModel GetCurrentModel()
{
return models.Find((m) => m.index == modelIndex).model;
return models[currentModelIndex].model;
}
/// <summary>