Exemple #1
0
 // Update is called once per frame
 void Update()
 {
     if (goHero.GetHeroLive() == false)
     {
         fDt         += Time.deltaTime;
         Uiimage.text = num.ToString();
         if (nSetDifficult > 1000)
         {
             Prefab        = true;
             nSetDifficult = 1;
             CreatePrefabSpeedUp();
             scManager.fSpeed            += 0.05f;
             scManager.fSaveMonsterSpeed += 0.05f;
         }
         if (fDt > 0.01f)
         {
             num            += 1 * ScoreX;
             nSetDifficult  += 1 * ScoreX;
             fDt             = 0.0f;
             scManager.Score = num;
         }
         if (Prefab == true)
         {
             CraetePrefabStage();
             Prefab = false;
         }
     }
 }
Exemple #2
0
    void Update()
    {
        fDt += Time.deltaTime;

        if (LiveHero.GetHeroLive() == false && fDt > 0.2f)
        {
            UpdateGuage();
        }
    }
Exemple #3
0
    int GetLiveCheckHero()
    {
        if (LiveHero == null)
        {
            LiveHero = GameObject.Find("HeroSprite").GetComponent <MouseScripts>();
        }

        if (LiveHero.GetHeroLive() == false)
        {
            return(1);
        }
        else
        {
            return(0);
        }
    }