Esempio n. 1
0
        void _Show(SlotGame _game)
        {
            game = _game;
            ImageShow(0);

            gameObject.transform.localPosition = Vector3.zero;
            gameObject.SetActive(true);
            SceneSlotGame.uiState = 1;
            StartCoroutine(BEUtil.instance.ImageScale(Dialog, Dialog.color, 1.0f, 1.1f, 1.0f, 0.1f, 0.0f));
        }
Esempio n. 2
0
        public void Init(SlotGame script, int x)
        {
            tr   = transform;
            game = script;            //tr.parent.GetComponent<SlotGame>();
            ID   = x;

            Symbols     = new GameObject[game.RowCount + 1];
            SymbolPos   = new Vector3[game.RowCount + 1];
            FinalValues = new int[game.RowCount];
            for (int y = 0; y < game.RowCount + 1; ++y)
            {
                GameObject go = BEObjectPool.Spawn(game.Symbols[0].prfab);
                go.transform.SetParent(tr);
                go.transform.localPosition = Vector3.zero;
                go.transform.localScale    = Vector3.one;
                go.name    = "Symbol" + y.ToString();
                Symbols[y] = go;
            }
        }
Esempio n. 3
0
 public static void Show(SlotGame game)
 {
     instance._Show(game);
 }
Esempio n. 4
0
 void Awake()
 {
     instance = this;
     tr       = transform;
     Array.Clear(SplashCount, 0, SplashCount.Length);
 }