Exemplo n.º 1
0
 public static void BoringCatcher()
 {
     Game1_Leveling.PlayScoreSound(false);
     foreach (Catcher snail in CatcherList)
     {
         snail.face.BoredSnail();
     }
 }
Exemplo n.º 2
0
        void catchHole()
        {
            if (targetHole != null)
            {
                if (targetHole.CatchHole())
                {
                    if (targetHole.type == MoleType.MOLE_RIGHT)
                    {
                        //Plus Score
                        face.HappySnail();
                        Game1_Leveling.PlayScoreSound(true);

                        //Gain EXP
                        Game1_Leveling.AddEXP();
                        setLevel();
                        GlobalGuage.AddScore(Game1_Leveling.GetCatchMoleScore());
                    }
                    else if (targetHole.type == MoleType.MOLE_WRONG)
                    {
                        //decrease life
                        face.ShockSnail();
                        Game1_Leveling.PlayScoreSound(false);
                        GameObject hpObj = GameObject.Instantiate(HPNotify) as GameObject;
                        hpObj.SetActive(true);
                        hpObj.transform.position = this.transform.position;
                        hpObj.GetComponent <HPNotification>().DecreaseLife(1);
                        GlobalGuage.DecreaseLife();
                        GlobalGuage.BrokeCombo();
                    }
                    else
                    {
                        //Game Over
                        GameObject hpObj = GameObject.Instantiate(HPNotify) as GameObject;
                        hpObj.transform.position = this.transform.position;
                        hpObj.GetComponent <HPNotification>().DecreaseLife(2);
                        GlobalGuage.DangerMole();
                    }
                }
                targetHole = null;
            }
            StartCoroutine("FindHole");
        }