Beispiel #1
0
 public GameObject(GameObject objectToCopy)
 {
     m_transform = new Transform(objectToCopy.Transform);
     if (objectToCopy.Sprite != null)
     {
         m_sprite = new Sprite(objectToCopy.Sprite, m_transform);
     }
     if (objectToCopy.m_updateList != null)
     {
         m_updateList = objectToCopy.m_updateList;
     }
     if (objectToCopy.m_drawingList != null)
     {
         m_drawingList = objectToCopy.m_drawingList;
     }
 }
 public GameObject(GameObject objectToCopy)
 {
     m_transform = new Transform(objectToCopy.Transform);
         if (objectToCopy.Sprite != null)
             m_sprite = new Sprite(objectToCopy.Sprite, m_transform);
         if (objectToCopy.m_updateList != null)
             m_updateList = objectToCopy.m_updateList;
         if (objectToCopy.m_drawingList != null)
             m_drawingList = objectToCopy.m_drawingList;
 }