예제 #1
0
    // Update is called once per frame
    /// <summary>
    /// Start is called on the frame when a script is enabled just before
    /// any of the Update methods is called the first time.
    /// </summary>
    public ElementSerializeObject GetSerializationObject()
    {
        ElementSerializeObject element = new ElementSerializeObject();

        element.position   = transform.position;
        element.rotation   = transform.rotation;
        element.type       = type;
        element.isDragable = isDragable;
        return(element);
    }
예제 #2
0
파일: Map.cs 프로젝트: LoD-Games/Solys
 public void Add(ElementSerializeObject element)
 {
     list.Add(element);
 }