示例#1
0
 public bool IsInState(StrHash stateName)
 {
     if (!IsHaveState(stateName))
     {
         return(false);
     }
     return(RootState.IsInState(stateName));
 }
示例#2
0
 public void ChangeState(StrHash stateName, Callback callback = null)
 {
     if (RootState.IsInState(stateName))
     {
         return;
     }
     callback?.Invoke();
     RootState?.ChangeState(stateName);
 }
示例#3
0
 public bool IsHaveState(StrHash stateName)
 {
     return(RootState.IsHaveState(stateName));
 }
示例#4
0
 public bool IsInState(StrHash name)
 {
     return(CurData.IsInState(name));
 }
示例#5
0
 public bool IsHaveState(StrHash stateName)
 {
     return(CurData.IsHaveState(stateName));
 }
示例#6
0
 public void ChangeState(StrHash name)
 {
     CurData?.ChangeState(name);
 }
示例#7
0
        public override bool Equals(object obj)
        {
            StrHash p = obj as StrHash;

            return(p.HashCode == HashCode);
        }