Example #1
0
        public void startHole()
        {
            MoleAnimator = GetComponent <Animator> ();
            Debug.Log("HoleStart");
            MoleAnimator.Play("HoleStart");
            //random Tag
            SnailLeveling lvl       = Game1_Leveling.GetLvling();
            float         randomTag = Random.Range(0.0f, lvl.RightMoleRate + lvl.WrongMoleRate + lvl.DangerMoleRate);

            if (randomTag < lvl.RightMoleRate)
            {
                type = MoleType.MOLE_RIGHT;
                MoleTag.SetTagIdx(type);
            }
            else if (randomTag > lvl.RightMoleRate + lvl.WrongMoleRate)
            {
                //IsDangerMole
                type = MoleType.MOLE_DANGER;
                MoleTag.SetTagIdx(type);
            }
            else
            {
                //wrong mole
                type = MoleType.MOLE_WRONG;
                MoleTag.SetTagIdx(type);
            }
            StartCoroutine("PopMole");
        }
Example #2
0
        public void setLevel()
        {
            SnailLeveling lvl = Game1_Leveling.GetLvling();

            speed    = lvl.CatcherSpeed / 100.0f;
            idleTime = lvl.CatcherIdleTime;
            shell.ChangeShell(Game1_Leveling.GetLvling().Shell);
        }
Example #3
0
    public static int GetCatchMoleScore()
    {
        //get combo and level to calculate score
        int           ComboCount      = GlobalGuage.GetCombo();
        SnailLeveling gameLvl         = GameLvlingObject.SnailLevelList[currentLevel];
        float         scoreMultiplier = (1 + (gameLvl.RightModifier * ComboCount));

        return((int)(10000 * scoreMultiplier));
    }