// Copyright (C) 2015-2021 gamevanilla - All rights reserved.
// This code can only be used under the standard Unity Asset Store End User License Agreement.
// A Copy of the Asset Store EULA is available at http://unity3d.com/company/legal/as_terms.
using UnityEngine;
namespace UltimateClean
{
///
/// This class is responsible for creating and opening a popup of the
/// given prefab and adding it to the UI canvas of the current scene.
///
public class PopupOpener : MonoBehaviour
{
public GameObject popupPrefab;
protected Canvas m_canvas;
protected GameObject m_popup;
protected void Start()
{
m_canvas = GameObject.Find("Canvas").GetComponent