Esempio n. 1
0
    /// <summary>
    /// Set Up all the enabled Mask parts on the UI
    /// </summary>
    private void setUpPool(MaskPool pool, Dictionary <Sprite, bool> spritesDict)
    {
        List <Sprite> unlockedMasks = MaskPartContainer.GetUnlockedMasks(spritesDict);

        ListUtils.Shuffle(unlockedMasks);
        pool.masksSprites.AddRange(unlockedMasks);
        pool.ShowMasks();
    }
Esempio n. 2
0
    void Awake()
    {
        gameManager   = GameObject.Find("GameManager");
        shapeMaskPool = GameObject.Find("maskPool").GetComponent <MaskPool>();
        eyesMaskPool  = GameObject.Find("eyesPool").GetComponent <MaskPool>();
        mouthMaskPool = GameObject.Find("mouthPool").GetComponent <MaskPool>();

        gameMaster = DebugUtils.GetGameMaster();
    }