예제 #1
0
        public override void Apply()
        {
            var pos = _currentProject.transform.position;

            switch (_type)
            {
            case EducationBuilding.School: HighSchool.SetOnMap(pos); break;

            case EducationBuilding.University: University.SetOnMap(pos); break;

            case EducationBuilding.DayCarePost: DayCarePost.SetOnMap(pos); break;
            }

            Clean();
        }
예제 #2
0
        public override void OnMoved(GridCell cell)
        {
            _currentProject.transform.position           = cell.center;
            CommonModels.InfluenceObj.transform.position = cell.center;

            switch (_type)
            {
            case EducationBuilding.School: Building.SetRenderer(_currentProject, HighSchool.IsBuildable(cell)); break;

            case EducationBuilding.University: Building.SetRenderer(_currentProject, University.IsBuildable(cell)); break;

            case EducationBuilding.DayCarePost: Building.SetRenderer(_currentProject, DayCarePost.IsBuildable(cell)); break;
            }
        }