using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Status
{
///
/// DetailsLevel manages and changes the current details level
///
public class DetailsLevel : MonoBehaviour
{
///
/// Currently active details level
/// State == 0 LOD Group handles model
/// State == 1 blocks only
/// State == 2 models without color
/// State == 3 models with color and full detail
///
public static int State = 0;
///
/// Maximum number of states
///
private readonly static int NumberOfMStates = 4;
// Update is called once per frame
void Update()
{
// Change current state via button press
if (Input.GetButtonDown("Change"))
{
CycleStates(1);
}
}
public void CycleStates(short direction)
{
State = (State + (int)Mathf.Sign(direction)) % (NumberOfMStates);
}
}
}