public static void _update(object MyObject, EventArgs eventArgs) { if (!die) { if (Inventory.inv) { l_hp.Text = "Здоровье: " + (int)character_hp; l_hp_max.Text = "Максимальное здоровье: " + hp_max; l_lvl.Text = "Уровень: " + lvl; l_str.Text = "Сила: " + str; l_spd.Text = "Скорость: " + (int)spd; l_dmg.Text = "Урон: " + char_dmg; Inventory._itemText(); } if (MiniGame.minigame) { MiniGame.l_char_health.Text = "Здоровье: " + (int)Save.s_character_hp; MiniGame.l_enemy_health.Text = "Здоровье: " + (int)Save.s_e_hp[MiniGame.e_count]; MiniGame.l_shield.Text = "Щит: " + (int)MiniGame.shield; MiniGame._destroyTiles(); } if (MiniGame.minigame || Interface.p_game) { _dead(); _eDie(); _lvl(); } if (Interface.p_game && !pause) { l_hp.Text = "Здоровье: " + (int)character_hp; l_exp.Text = "Опыт: " + (int)exp; l_exp_n.Text = "Осталось опыта для получения уровня: " + (int)(exp_n - exp); _CheckBorders(); _nullCollision(); for (int i = 0; i < e_count; i++) { _Collision(i); _CheckBordersEnemy(i); } if (M_counter >= M_m_counter) { if (!e_cmove) { //_enemyMove(); _enemyMovesm(); } M_counter = 0; } else { M_counter++; } //_lvl(); _fruitEat(); Locations._notMove(); //if (Locations.numhow_right == 3) // Locations.Castle(); } } }