void FixedUpdate() { if (Random.Range(0, 1800) == 1) { ForBomb.setWether(Random.Range(-3f, 1f)); } }
private void OnGUI() { if (!play) { GUI.Label(forDie, "Поражение! Счёт: " + score, GUIStyle); } GUI.Label(forScore, "Score: " + score, mainStyle); GUI.Label(forWind, "Wind: " + ForBomb.getWether(), mainStyle); }