public void Initialize(int x, int y, CellManager cellManager) { this.X = x; this.Y = y; this.PosX = x * size; this.PosY = -y * size; this.transform.localPosition = new Vector3(this.PosX, this.PosY, 0); this.cellNumber = cellManager.fieldManager.gameMap.CellNumber(x, y); this.IsFieldMoveCell = false; }
public InteractionManager(InteractionEvent interactionEvent, CellManager cellManager, EventManager eventManager) { this.interactionEvent = interactionEvent; this.cellManager = cellManager; this.eventManager = eventManager; }