示例#1
0
    // ----------------------------------------------------------------
    public Transform AddSticker(int _id, Vector2 _pos)
    {
        gestureHint_drag.SetActive(false);

        if (stickers.Count >= SettingManager.instance.maxStickerCount)
        {
            return(null);
        }
        else
        {
            GameObject stickerObj = Instantiate(prefab_sticker, this.transform, false);
            Sticker    sticker    = stickerObj.GetComponent <Sticker>();
            sticker.Setup(_id, _pos);
            stickers.Add(sticker);

            if (stickers.Count >= SettingManager.instance.maxStickerCount)
            {
                SetButtonsInteractable(false);
            }

            return(stickerObj.transform);
        }
    }