public void FinalShoot() { if (IsDead()) { GetComponent <Rigidbody>().AddForce(Vector3.forward * 1, ForceMode.Impulse); WinOrLoseWindow.SetActive(true); Time.timeScale = 0; SaveLoadScore.SaveIfBiggestThenCurrent(Score); } }
// Start is called before the first frame update void Start() { GetComponent <Text>().text = SaveLoadScore.Load().ToString(); }
public static void QuitGame() { SaveLoadScore.SaveScore(); Environment.Exit(0); }
public static void Main(string[] args) { SaveLoadScore.LoadScore(); Game.PreGame(); }