示例#1
0
 public SMState(string name, GameObject go)
 {
     Name       = name;
     HashCode   = Name.GetHashCode();
     gameObject = go;
     _sm        = gameObject.GetComponent <CBStateMachine>();
 }
 public SMCondition(List <string> args, GameObject obj)
 {
     gameObject = obj;
     Data       = new SMData();
     _sm        = gameObject.GetComponent <CBStateMachine>();
     ParseConditionsData(args);
 }
 public SMTransition(SMState origin, SMState dest, float duration, GameObject go)
 {
     gameObject = go;
     Dest       = dest;
     Duration   = duration;
     _sm        = gameObject.GetComponent <CBStateMachine>();
 }