1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- namespace Status
- {
-
-
-
- public class DetailsLevel : MonoBehaviour
- {
-
-
-
-
-
-
-
- public static int State = 0;
-
-
-
- private readonly static int NumberOfMStates = 4;
-
- void Update()
- {
-
- if (Input.GetButtonDown("Change"))
- {
- CycleStates(1);
- }
-
- }
- public void CycleStates(short direction)
- {
- State = (State + (int)Mathf.Sign(direction)) % (NumberOfMStates);
- }
- }
- }
|