using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Unity.Barracuda;
///
/// This scriptable will hold tupples of Courseindices and models
///
[CreateAssetMenu(menuName = "Create new Scriptable/ModelList")]
public class ModelList : ScriptableObject
{
///
/// Index of the currently active model
///
public int currentModelIndex = 0;
///
/// A list of all the models
///
public List models = new List();
///
/// Get a model by modelindex
///
/// ModelIndex of the model
/// Model associated with this index, null if no model was found
public NNModel GetCurrentModel()
{
return models[currentModelIndex].model;
}
///
/// Function to find a model-index in the list based on its index
///
///
public void SetCurrentModel(ModelIndex index)
{
currentModelIndex = models.FindIndex((m) => m.index == index);
}
}