michaelrenoo_Dungeorus/Software/Dungerous_0.1/Assets/InputWindow/Scripts/UI_Blocker.cs
/* 
    ------------------- Code Monkey -------------------

    Thank you for downloading this package
    I hope you find it useful in your projects
    If you have any questions let me know
    Cheers!

               unitycodemonkey.com
    --------------------------------------------------
 */

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class UI_Blocker : MonoBehaviour {

    private static UI_Blocker instance;

    private void Awake() {
        instance = this;
        
        GetComponent<RectTransform>().anchoredPosition = Vector2.zero;
        GetComponent<RectTransform>().sizeDelta = Vector2.zero;

        Hide_Static();
    }

    public static void Show_Static() {
        instance.gameObject.SetActive(true);
        instance.transform.SetAsLastSibling();
    }

    public static void Hide_Static() {
        instance.gameObject.SetActive(false);
    }

}
