예제 #1
0
파일: Building.cs 프로젝트: oalonsobu/Shata
 public bool isCompatibleWithCell(CellBase cell)
 {
     return((cell.isEmptyCell() && BuildableIn.Any(a => a.GetType() == cell.CellType.GetType())) ||
            (!cell.isEmptyCell() && cell.CurrentBuilding.UpgradableTo.Any(a => a.GetType() == GetType())));
 }