Beispiel #1
0
 public void LoadData(ISaveService sc)
 {
     this.transform.position = new Vector3(
         sc.LoadFloat(this.gameObject, "location.position.x"),
         sc.LoadFloat(this.gameObject, "location.position.y"),
         sc.LoadFloat(this.gameObject, "location.position.z"));
     this.transform.rotation = new Quaternion(
         sc.LoadFloat(this.gameObject, "location.rotation.x"),
         sc.LoadFloat(this.gameObject, "location.rotation.y"),
         sc.LoadFloat(this.gameObject, "location.rotation.z"),
         sc.LoadFloat(this.gameObject, "location.rotation.w"));
     this.transform.localScale = new Vector3(
         sc.LoadFloat(this.gameObject, "location.scale.x"),
         sc.LoadFloat(this.gameObject, "location.scale.y"),
         sc.LoadFloat(this.gameObject, "location.scale.z"));
 }