示例#1
0
 /* Loads data not specified for this prefab for this Actor */
 public void LoadData(Data dat)
 {
     displayName = dat.displayName;
     transform.position = new Vector3(dat.x, dat.y, dat.z);
     transform.rotation = Quaternion.identity;
     headRotx = dat.xr;
     headRoty = dat.yr;
     bodyRoty = dat.yr;
     int i = 0;
     arms = dat.equipSlot;
     doll = dat.doll;
     arms.Load(offHand, hand, this);
     inventory.LoadData(dat.inventoryRecord);
     id = dat.ints[i]; i++;
     lastPos = dat.lastPos;
     speechTree = dat.speechTree;
 }