public IPowerConsumer GetConnectedDevice() { Vector2Int cell = Cell; LocalPowerController lpc = TileController.Find <LocalPowerController>(cell.x, cell.y); if (CheckRotation(lpc)) { return(lpc); } return(null); }
private bool CheckRotation(LocalPowerController lpc) { return(lpc.WallPressDirection == _connectionDirection); }