public override object Clone() { VsGameObject go = new VsGameObject(); go.activeSelf = this.activeSelf; return(go); }
protected override string[] Compare(object lastSyncObj) { VsGameObject comp = lastSyncObj as VsGameObject; if (comp == null) { return(null); } List <string> queries = new List <string>(); if (this.activeSelf != comp.activeSelf) { queries.Add($"{variableName}.SetActive({this.activeSelf.ToString().ToLower()});"); } // add other changes below return(queries.ToArray()); }