public void InitState() { _statemachine = new Statemachine <State>(); _statemachine.Init(this); _statemachine.Next(State.Init); }
protected override void Awake() { base.Awake(); _statemachine = new Statemachine <State>(); _statemachine.Init(this); }
void Awake() { _statemachine = new Statemachine <State>(); _statemachine.Init(this); }
// Use this for initialization void Awake() { _statemachine.Init(this); }
protected virtual void Awake() { _statemachine = new Statemachine <T>(); _statemachine.Init(this); _statemachine.Next((T)Enum.GetValues(typeof(T)).GetValue(0)); }
private void Awake() { _statemachine.Init(this); FieldManager.Instance.CreateFieldSubstate = _statemachine; }