private void FillPotionsValues(bool captured) { string add = "+"; int min = 0, max = captured ? 6 : 4; int hp = MathConts.RandomInt(min, max), insp = MathConts.RandomInt(min, max); HPValue.text = add + hp.ToString(); InspValue.text = add + insp.ToString(); GameManager.Instance.CurrentPlayer.HpPotions += hp; GameManager.Instance.CurrentPlayer.InspPotions += insp; }
private void PlayTracks() { switch (MathConts.RandomInt(1, 4)) { case 1: MusicTrackI.Play(); break; case 2: MusicTrackII.Play(); break; case 3: MusicTrackIII.Play(); break; } }
public static void AddRandomMenuBackground(Image background) => background.sprite = GetSprite(BACKGROUNDS + MENU_BG + MathConts.RandomInt(1, 7));
public static void AddRandomDefinitionsBackground(Image background) => background.sprite = GetSprite(BACKGROUNDS + DEFINITIONS + MathConts.RandomInt(1, 4));