Esempio n. 1
0
 private void Update()
 {
     if (achUn)
     {
         if (Input.touchCount > 0)
         {
             Rewards1.SetActive(false);
             Rewards2.SetActive(false);
             Rewards3.SetActive(false);
         }
     }
 }
Esempio n. 2
0
    public void unlockAchievement(float score)
    {
        //  Phase mPhase = GameControl.control.stagedata[stagenum].phases[phasenum];
        //  Stage mStage = GameControl.control.stag[stagenum];
        //foreach(Level l in )
        if (score > 40000 && score < 60000)
        {
            Rewards1.SetActive(true);
            rewardStar.GetComponent <Image>().color = new Color(0.601f, 0.4720343f, 0.361201f);
            GameControl.control.lives += 3;
            GameControl.control.times += 3;
            GameControl.control.zooms += 2;
            GameControl.control.flys  += 2;


            //   achUn = true;// Stars[GameControl.control.Stage].intArray[0].SetActive(true);
        }
        if (score > 60000 && score < 80000)
        {
            Rewards2.SetActive(true);
            rewardStar.GetComponent <Image>().color = new Color(0.771261f, 0.807471f, 0.811f);
            GameControl.control.lives += 3;
            GameControl.control.times += 3;
            GameControl.control.zooms += 2;
            GameControl.control.flys  += 2;
            //achUn = true;//Stars[GameControl.control.Stage].intArray[1].SetActive(true);
        }
        if (score > 80000)
        {
            Rewards3.SetActive(true);
            rewardStar.GetComponent <Image>().color = new Color(0.9496731f, 0.9496731f, 4292453f);
            GameControl.control.lives += 3;
            GameControl.control.times += 3;
            GameControl.control.zooms += 2;
            GameControl.control.flys  += 2;
            //  achUn = true;//Stars[GameControl.control.Stage].intArray[2].SetActive(true);
        }
    }