Advertisement
marcb152

CellData for Mesh Combiner

Jun 7th, 2020
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.68 KB | None | 0 0
  1. //This is the cell data script, the mesh combiner will not work without this one
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. [System.Serializable]
  6. public class CellData
  7. {
  8.     public int ID;
  9.     public Vector2 cellOrigin;
  10.     public List<GameObject> cellItems = new List<GameObject>();
  11.  
  12.     public CellData () { }
  13.  
  14.     public CellData (int ID, Vector2 cellOrigin, List<GameObject> cellItems)
  15.     {
  16.         this.ID = ID;
  17.         this.cellOrigin = cellOrigin;
  18.         this.cellItems = cellItems;
  19.     }
  20.  
  21.     public CellData(int ID, Vector2 cellOrigin)
  22.     {
  23.         this.ID = ID;
  24.         this.cellOrigin = cellOrigin;
  25.         //this.cellItems = null;
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement