Beispiel #1
0
    public void SaveData(ISaveService sc)
    {
        sc.SaveFloat(this.gameObject, "location.position.x", this.transform.position.x);
        sc.SaveFloat(this.gameObject, "location.position.y", this.transform.position.y);
        sc.SaveFloat(this.gameObject, "location.position.z", this.transform.position.z);

        sc.SaveFloat(this.gameObject, "location.rotation.x", this.transform.rotation.x);
        sc.SaveFloat(this.gameObject, "location.rotation.y", this.transform.rotation.y);
        sc.SaveFloat(this.gameObject, "location.rotation.z", this.transform.rotation.z);
        sc.SaveFloat(this.gameObject, "location.rotation.w", this.transform.rotation.w);

        sc.SaveFloat(this.gameObject, "location.scale.x", this.transform.localScale.x);
        sc.SaveFloat(this.gameObject, "location.scale.y", this.transform.localScale.y);
        sc.SaveFloat(this.gameObject, "location.scale.z", this.transform.localScale.z);
    }