public MergeActionDeleteComponent(GameObject ours, Component ourComponent) : base(ours, null) { this.ourComponent = ourComponent; var go = new GameObject("GitMerge Object"); go.SetActiveForMerging(false); copy = go.AddComponent(ourComponent); if(GitMergeWindow.automerge) { UseOurs(); } }
public static void SetAsTheirs(GameObject go, bool active) { if(!theirObjects.ContainsKey(go)) { theirObjects.Add(go, go.activeSelf); } go.SetActiveForMerging(false); }