Exemple #1
0
    public void Init()
    {
        TutorialActivityManager.instance.Init();

        rand = new System.Random();
        GameObject viewObj = ResourceLoader.instance.GetPrefab("SlotManagerView");

        view = Instantiate(viewObj).GetComponent <SlotManagerView>();
        view.transform.SetParent(transform);
        view.Init();

        reels.Add(setupReels[0]);
        reels.Add(setupReels[1]);
    }
Exemple #2
0
    public void Init()
    {
        ActivityManager.instance.Init();

        rand = new System.Random();
        GameObject viewObj = ResourceLoader.instance.GetPrefab("SlotManagerView");

        view = Instantiate(viewObj).GetComponent <SlotManagerView>();
        view.transform.SetParent(transform);
        view.Init();

        if (GameManager.instance.numCharacters == 1)
        {
            reels.Add(setupReels[0]);
            setupReels[1].gameObject.SetActive(false);
            setupReels[2].gameObject.SetActive(false);
            setupReels[3].gameObject.SetActive(false);
            setupReels[4].gameObject.SetActive(false);
        }
        else
        {
            // Debugging only, show all 5
        }
    }