public virtual void Awake() { StructureTransform = transform; RenderInformation = GetComponent <RenderInformationList>(); for (int i = 0; i < GridPositionReferences.Count; i++) { GridCells.Add(new GridCell(GridPositionReferences[i].position.RoundToGridCenter(), this)); Destroy(GridPositionReferences[i].gameObject); } GridPositionReferences.Clear(); }
void Awake() { RenderInformation = GetComponent <RenderInformationList>(); ItemTransform = transform; gameObject.layer = 11; // item layer }