Ejemplo n.º 1
0
 public void SetUp(SerialStateObject sso)
 {
     gameObject.name = sso.instanceName;
     transform.position = sso.position.ToVector3();
     transform.rotation = sso.rotation.ToQuaternion();
     transform.localScale = sso.scale.ToVector3();
     transitionStateId = sso.transitionStateId;
     isStateChanger = sso.isStateChanger;
 }
Ejemplo n.º 2
0
 public SerialState(State s)
 {
     name = s.name;
     stateObjects = new List<SerialStateObject>();
     Dictionary<int, StateObject>.Enumerator enumerator = s.stateObjects.GetEnumerator();
     
     while(enumerator.MoveNext())
     {
         StateObject so = enumerator.Current.Value;
         SerialStateObject sso = new SerialStateObject(so);
         stateObjects.Add(sso);
     }
     id = s.id;
 }