/// <summary> /// Copy the specified entity. /// </summary> /// <param name="entity">Entity.</param> public void Copy(SceneEntity entity) { _name = entity.Name; _fullPath = entity.FullPath; _guid = entity.GUID; _inBuild = entity.InBuild; _isActive = entity.IsActive; _isEnabled = entity.IsEnabled; _index = entity.BuildIndex; }
public static int CompareByIndex(SceneEntity sceneA, SceneEntity sceneB) { if (sceneA == null && sceneB == null) return 0; if (sceneA == null) return -1; if (sceneB == null) return 1; return sceneA.BuildIndex - sceneB.BuildIndex; }