private void Awake() { if (instance_Grid == null) { instance_Grid = this; } else { DontDestroyOnLoad(this.gameObject); } }
public static Grid[] FromTSObject(dynamic[] tsArray) { if (tsArray is null) { return(null); } var list = new System.Collections.Generic.List <Grid>(); foreach (var tsItem in tsArray) { list.Add(Grid_.FromTSObject(tsItem)); } return(list.ToArray()); }
public static dynamic GetTSObject(Grid[] dynArray) { if (dynArray is null) { return(null); } var list = new System.Collections.Generic.List <dynamic>(); foreach (var dynItem in dynArray) { list.Add(Grid_.GetTSObject(dynItem)); } return(list.ToArray()); }