void Awake()
    {
        curLevelTime  = 60;
        matchSixTimes = 0;
        isLevelPass   = false;
        doubleScore   = false;
        taskFinishPanel.SetActive(false);
        //showTaskFinishedPanel = true;
        curClearModels = 0;
        //GameTask task=new GameTask(UnityEngine.Random.Range(0,2));
        GameTask task = new GameTask(2);

        string[] taskInfo = task.TaskInfo();
        taskText.text  = taskInfo[1];
        awardText.text = taskInfo[3];
        curTaskType    = taskInfo[0];
        goalNums       = Convert.ToInt32(taskInfo[2]);
        award          = Convert.ToInt32(taskInfo[3]);
        isSkill        = false;
        canClick       = true;
        step           = 0;
        //Destroy(this);
        awardNums = 0;
        gameBegin = false;
        gameover  = false;
        instance  = this;

        canAudio = PlayerPrefs.GetInt("Audio", 1) == 1;
        if (canAudio)
        {
            audioOnOff.SetActive(false);
            Camera.main.GetComponent <AudioSource>().Play();
        }
        else
        {
            audioOnOff.SetActive(true);
            Camera.main.GetComponent <AudioSource>().Stop();
        }
        beginPanel.SetActive(true);
        if (PlayerPrefs.GetInt("level") == 1)
        {
            Time.timeScale = 0.1f;
        }
    }