Пример #1
0
 private void Awake()
 {
     if (instance_Grid == null)
     {
         instance_Grid = this;
     }
     else
     {
         DontDestroyOnLoad(this.gameObject);
     }
 }
Пример #2
0
        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());
        }
Пример #3
0
        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());
        }