Esempio n. 1
0
        public void CreateSplash(Vector3 pos, LiquidType liquid)
        {
            if (MathFunctions.RandEvent(0.9f))
            {
                return;
            }
            switch (liquid)
            {
            case LiquidType.Water:
            {
                SplashType splash = new SplashType
                {
                    name        = "splash2",
                    numSplashes = 2,
                    position    = pos,
                    sound       = ContentPaths.Audio.river
                };
                Splashes.Enqueue(splash);
            }
            break;

            case LiquidType.Lava:
            {
                SplashType splash = new SplashType
                {
                    name        = "flame",
                    numSplashes = 5,
                    position    = pos,
                    sound       = ContentPaths.Audio.fire
                };
                Splashes.Enqueue(splash);
            }
            break;
            }
        }
Esempio n. 2
0
 public void Load(SplashType splash)
 {
     switch (splash)
     {
         case SplashType.GameStart:
             _screen = new GameStart(_game);
             break;
         case SplashType.GameOver:
             _screen = new GameOver(_game);
             break;
         case SplashType.Credits:
             _screen = new Credits(_game);
             break;
     }
 }
        public void Load(SplashType splash)
        {
            switch (splash)
            {
            case SplashType.GameStart:
                _screen = new GameStart(_game);
                break;

            case SplashType.GameOver:
                _screen = new GameOver(_game);
                break;

            case SplashType.Credits:
                _screen = new Credits(_game);
                break;
            }
        }
Esempio n. 4
0
        void _Show(int type)
        {
            gameObject.transform.localPosition = Vector3.zero;
            gameObject.SetActive(true);
            SceneSlotGame.uiState = 1;
            Type = type;
            fAge = 0.0f;

            SplashType st = (SplashType)Type;

            if (st == SplashType.FiveInRow)
            {
                Info.text  = "<color=yellow>5 in Row !!!</color>";
                Info2.text = "";
            }
            else if (st == SplashType.BigWin)
            {
                Info.text  = "<color=yellow>BigWin !!!</color>";
                Info2.text = "";
            }
            else if (st == SplashType.FreeSpin)
            {
                Info.text  = "<color=yellow>" + SlotGame.instance.gameResult.NewFreeSpinCount.ToString() + "</color>";
                Info2.text = "Free Spins Won !";
            }
            else if (st == SplashType.FreeSpinEnd)
            {
                Info.text  = "<color=yellow>" + SlotGame.instance.gameResult.FreeSpinTotalWins.ToString() + " Won !!! </color>";
                Info2.text = SlotGame.instance.gameResult.FreeSpinTotalCount.ToString() + " Free Spins Completed !";
            }
            else
            {
            }


            StartCoroutine(BEUtil.instance.ImageScale(Dialog, Dialog.color, 1.0f, 1.1f, 1.0f, 0.1f, 0.0f));
        }
Esempio n. 5
0
 public void CreateSplash(Vector3 pos, LiquidType liquid)
 {
     switch(liquid)
     {
         case LiquidType.Water:
         {
             SplashType splash = new SplashType
             {
                 name = "splash2",
                 numSplashes = 2,
                 position = pos,
                 sound = ContentPaths.Audio.river
             };
             Splashes.Enqueue(splash);
         }
             break;
         case LiquidType.Lava:
         {
             SplashType splash = new SplashType
             {
                 name = "flame",
                 numSplashes = 5,
                 position = pos,
                 sound = ContentPaths.Audio.fire
             };
             Splashes.Enqueue(splash);
         }
             break;
     }
 }