29 lines
735 B
C#
29 lines
735 B
C#
|
|
using XCEngine;
|
||
|
|
|
||
|
|
namespace Gameplay
|
||
|
|
{
|
||
|
|
public enum EnumFieldProbeState
|
||
|
|
{
|
||
|
|
Default = 1,
|
||
|
|
StoredConfigured = 5,
|
||
|
|
RuntimeUpdated = 9,
|
||
|
|
}
|
||
|
|
|
||
|
|
public sealed class EnumFieldProbe : MonoBehaviour
|
||
|
|
{
|
||
|
|
public EnumFieldProbeState State = EnumFieldProbeState.Default;
|
||
|
|
public int ObservedInitialState = -1;
|
||
|
|
public bool ObservedStoredStateApplied;
|
||
|
|
public int ObservedUpdatedState = -1;
|
||
|
|
|
||
|
|
public void Start()
|
||
|
|
{
|
||
|
|
ObservedInitialState = (int)State;
|
||
|
|
ObservedStoredStateApplied = State == EnumFieldProbeState.StoredConfigured;
|
||
|
|
|
||
|
|
State = EnumFieldProbeState.RuntimeUpdated;
|
||
|
|
ObservedUpdatedState = (int)State;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|