public bool IsInState(StrHash stateName) { if (!IsHaveState(stateName)) { return(false); } return(RootState.IsInState(stateName)); }
public void ChangeState(StrHash stateName, Callback callback = null) { if (RootState.IsInState(stateName)) { return; } callback?.Invoke(); RootState?.ChangeState(stateName); }
public bool IsHaveState(StrHash stateName) { return(RootState.IsHaveState(stateName)); }
public bool IsInState(StrHash name) { return(CurData.IsInState(name)); }
public bool IsHaveState(StrHash stateName) { return(CurData.IsHaveState(stateName)); }
public void ChangeState(StrHash name) { CurData?.ChangeState(name); }
public override bool Equals(object obj) { StrHash p = obj as StrHash; return(p.HashCode == HashCode); }