コード例 #1
0
 void OpponentsInLocation()
 {
     if (currentRoom.boss == true)
     {
         attenuation.TheAppearanceOfObject("Boss");
     }
     else
     {
         attenuation.TheAppearanceOfObject("Ambush");
     }
 }
コード例 #2
0
 public void AcceptsAndRedirects(string Key, string KeyOne, string KeyTwo)
 {
     if (Key == "тсл")
     {
         attenuation.TheAppearanceOfObject("Level");
     }
     if (Key == "новая" && KeyOne == "игра" || Key == "new" && KeyOne == "game")
     {
         AcceptsAKeyForStart();
     }
     if (Key == "загрузить" || Key == "loading")
     {
         AcceptsAKeyForLoad();
     }
     if (Key == "настройки" || Key == "settings")
     {
         ActionPoint = "Настройки";
         TransitionsToTheMenu();
     }
     if (Key == "назад" || Key == "back")
     {
         ActionPoint = "Главное меню";
         TransitionsToTheMenu();
     }
 }
コード例 #3
0
 public void DataTransferAndSaveData()
 {
     characteristicsHero.Name          = Name;
     characteristicsHero.Race          = Race;
     characteristicsHero.Class         = Class;
     characteristicsHero.StoryClass    = StoryClass;
     characteristicsHero.FullHealth    = FullHealth;
     characteristicsHero.CurrentHealth = CurrentFullHealth;
     characteristicsHero.MaxArmor      = MaxArmor;
     characteristicsHero.MinArmor      = MinArmor;
     characteristicsHero.MaxAttack     = MaxAttack;
     characteristicsHero.MinAttack     = MinAttack;
     characteristicsHero.MaxAbility    = MaxAbility;
     characteristicsHero.MinAbility    = MinAbility;
     characteristicsHero.Block         = Block;
     characteristicsHero.PotionX       = PotionX;
     characteristicsHero.Regen         = 0.5f;
     characteristicsHero.ForFirstSaveBody();
     characteristicsHero.SaveInformationsHeroes();
     characteristicsHero.SaveMaxCharacteristicsHero();
     characteristicsHero.SaveCurCharacteristicsHero();
     attenuation.TheAppearanceOfObject("Level");
 }