Ejemplo n.º 1
0
 public void RemovePrefab()
 {
     SS_GridInstanceObject[] newPrefabs = new SS_GridInstanceObject[thePrefabs.Length - 1];
     for (int i = 0; i < thePrefabs.Length - 1; i++)
     {
         newPrefabs[i] = thePrefabs[i];
     }
     thePrefabs = newPrefabs;
 }
Ejemplo n.º 2
0
        public void AddPrefab()
        {
            SS_GridInstanceObject[] newPrefabs = new SS_GridInstanceObject[thePrefabs.Length + 1];

            for (int i = 0; i < thePrefabs.Length; i++)
            {
                newPrefabs[i] = thePrefabs[i];
            }

            newPrefabs[newPrefabs.Length - 1]           = new SS_GridInstanceObject();
            newPrefabs[newPrefabs.Length - 1].thePrefab = SS_Common.SS_DefaultGridPrefab();
            thePrefabs = newPrefabs;
        }