Beispiel #1
0
 private void SaveScene(HScene scene)
 {
     scene.SaveOnHolds(sf.GetFocusHold());
     scene.SaveComments(cs.GetComments());
     scene.SavePose(ik.GetPosition());
     scene.SavePRotate(ik.GetRotation());
 }
Beispiel #2
0
    public void FromJson(string json)
    {
        scenes = JsonUtility.FromJson <DataArray>(json);
        List <HScene> list = new List <HScene>();

        for (int i = 0; i < scenes.arr.Length; i++)
        {
            Data   data  = scenes.arr[i];
            HScene scene = new HScene();

            scene.SetOnHolds(data.holdsOnHand);
            scene.SaveComments(data.comments);

            if (data.posable)
            {
                scene.SavePose(data.pose);
                scene.SavePRotate(data.rotate);
            }
            list.Add(scene);
        }

        hscenes.Construction(list);
    }
Beispiel #3
0
 private void SaveScene(HScene scene)
 {
     scene.SaveOnHolds(sf.GetFocusHold());
     scene.SaveComments(cs.GetComments());
 }