Beispiel #1
0
        public void BtnStreet()
        {
            UiController.EnableEditionMode();

            GameplayController.SetInsertionModel(Tags.Street);
            GameplayController.SetCurrentMode(TouchBehavior.Building);
        }
Beispiel #2
0
        public void BtnOption4()
        {
            lock (UiController.TouchOnUILock) { UiController.TouchOnUI = true; }
            UiController.EnableEditionMode();

            GameplayController.SetInsertionModel(Tags.Clean);
            GameplayController.SetCurrentMode(TouchBehavior.Building);
        }
Beispiel #3
0
        public void BtnSchool(int educationType)
        {
            switch (educationType)
            {
            case BIG: GameplayController.SetInsertionModel(Tags.University); break;

            case SMALL: GameplayController.SetInsertionModel(Tags.DayCarePost); break;

            case MEDIUM: GameplayController.SetInsertionModel(Tags.HighSchool); break;
            }

            UiController.EnableEditionMode();
            GameplayController.SetCurrentMode(TouchBehavior.Building);
        }
Beispiel #4
0
        public void BtnPolice(int securityType)
        {
            switch (securityType)
            {
            case BIG: GameplayController.SetInsertionModel(Tags.PoliceHeadquartes); break;

            case SMALL: GameplayController.SetInsertionModel(Tags.SecurityCabin); break;

            case MEDIUM: GameplayController.SetInsertionModel(Tags.PoliceStation); break;
            }

            UiController.EnableEditionMode();
            GameplayController.SetCurrentMode(TouchBehavior.Building);
        }
Beispiel #5
0
        public void BtnHospital(int healthType)
        {
            switch (healthType)
            {
            case BIG: GameplayController.SetInsertionModel(Tags.Hospital); break;

            case SMALL: GameplayController.SetInsertionModel(Tags.FirstAidPost); break;

            case MEDIUM: GameplayController.SetInsertionModel(Tags.Clinic); break;
            }

            UiController.EnableEditionMode();
            GameplayController.SetCurrentMode(TouchBehavior.Building);
        }
Beispiel #6
0
 public void BtnCancel()
 {
     lock (UiController.TouchOnUILock) { UiController.TouchOnUI = true; }
     UiController.EnableNormalMode();
     GameplayController.CancelInsertion();
 }
Beispiel #7
0
 public void BtnAccept()
 {
     lock (UiController.TouchOnUILock) { UiController.TouchOnUI = true; }
     UiController.EnableNormalMode();
     GameplayController.AcceptInsertion();
 }
Beispiel #8
0
 public void BtnGiveup()
 {
     GameplayController.CtrlZInsertion();
 }