private void Awake() { Instance = this; UtilClass.InitializeUtilClass(); grid = new GridXZ <GridObject>(StartTransform, Width, Height, CellSize, StartTransform.position, (GridXZ <GridObject> g, int x, int z) => new GridObject(g, x, z)); }
private void Start() { buildingSystem = GridBuildingSystem.Instance; buildingSystem.OnSelectedChanged += Event_OnSlectedChanged; }