public void NormalSpeed() { Time.timeScale = 1; PauseButton.GetComponent <Image>().color = Color.white; StartButton.GetComponent <Image>().color = Color.green; SpeedUpButton.GetComponent <Image>().color = Color.white; }
public void DoubleSpeed() { Time.timeScale = 2; PauseButton.GetComponent <Image>().color = Color.white; StartButton.GetComponent <Image>().color = Color.white; SpeedUpButton.GetComponent <Image>().color = Color.green; }
public void StopTime() { Time.timeScale = 0; PauseButton.GetComponent <Image>().color = Color.green; StartButton.GetComponent <Image>().color = Color.white; SpeedUpButton.GetComponent <Image>().color = Color.white; }