Exemplo n.º 1
0
        public void FromCluster(Cluster cluster)
        {
            BlockGrid     = new BlockGrid(transform, OnGridEmpty, this);
            Configuration = new GridInstanceConfiguration {
                Invulnerable = false
            };

            foreach (var block in cluster)
            {
                block.transform.SetParent(transform);
                block.Parent = this;
                BlockGrid.Add(block);
            }

            foreach (var thruster in BlockGrid.Metadata.ThrusterList)
            {
                thruster.PowerDown();
            }
        }