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)); }
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; } }
public static void Show(SlotGame game) { instance._Show(game); }
void Awake() { instance = this; tr = transform; Array.Clear(SplashCount, 0, SplashCount.Length); }