示例#1
0
    void Update()
    {
        if (Game && FirstSpawned)
        {
            scoreText.text = "Score: " + score.ToString();
            LolScore();
            if (lol)
            {
                switch (randomIndex)
                {
                case 0:
                    changer.ChangeToBlack();
                    state = 0;
                    break;

                case 1:
                    changer.ChangeToWhite();
                    state = 1;
                    break;

                case 2:
                    changer.ChangeToRed();
                    state = 2;
                    break;
                }
            }
        }
    }