示例#1
0
    public void NormalSpeed()
    {
        Time.timeScale = 1;

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

        PauseButton.GetComponent <Image>().color   = Color.white;
        StartButton.GetComponent <Image>().color   = Color.white;
        SpeedUpButton.GetComponent <Image>().color = Color.green;
    }
示例#3
0
    public void StopTime()
    {
        Time.timeScale = 0;

        PauseButton.GetComponent <Image>().color   = Color.green;
        StartButton.GetComponent <Image>().color   = Color.white;
        SpeedUpButton.GetComponent <Image>().color = Color.white;
    }