示例#1
0
 public Marker(LitJson.JsonData node, IngameMap.MarkerSetting setting)
 {
     Class = setting;
     Description = (string)node["description"];
     float x = float.Parse((string)node["x"]);
     float y = 0f;
     if (((string)node["z"]) != "")
         y = float.Parse((string)node["z"]);
     float z = float.Parse((string)node["y"]);
     WorldPosition = new Vector3(x, y, z);
 }
示例#2
0
            public Marker(LitJson.JsonData node, IngameMap.MarkerSetting setting)
            {
                Class       = setting;
                Description = (string)node["description"];
                float x = float.Parse((string)node["x"]);
                float y = 0f;

                if (((string)node["z"]) != "")
                {
                    y = float.Parse((string)node["z"]);
                }
                float z = float.Parse((string)node["y"]);

                WorldPosition = new Vector3(x, y, z);
            }