Пример #1
0
    void OnMouseOver()
    {
        if (Input.GetButtonDown("Fire1"))
        {
            sprite.sprite = sprite2;
        }

        if (Input.GetButtonUp("Fire1"))
        {
            sprite.sprite = sprite1;
            GM_Script.ResetGame();
            //START for changing BG Music
            tempBGRandomNum = (int)Random.Range(1, 5);
            SM_Script.ChangeBGMusic("Background" + tempBGRandomNum);
            //END for changing BG Music
        }
    }