// Start is called before the first frame update
    void Start()
    {
        transitions = Transitions.SharedComponent;
        transitions.FadeIn();

        audioSource = GetComponent <AudioSource>();
    }
 private static void FadeInAndOut(Graphic imageToFade, float duration, Action fadeInCallBack = null, Action fadeOutCallBack = null)
 {
     Transitions.FadeIn(imageToFade, duration, () =>
     {
         fadeInCallBack?.Invoke();
         Transitions.FadeOut(imageToFade, duration, fadeOutCallBack);
     });
 }
    // Start is called before the first frame update
    void Start()
    {
        transitions = Transitions.SharedComponent;
        transitions.FadeIn();

        if (!GameManager.invertYAxis)
        {
            flipYAxisText.text = "no";
        }

        audioSource = GetComponent <AudioSource>();

        ////Set Preview to upper left corner
        //var screenRes = Screen.currentResolution;
        //screenX = (float) screenRes.width;
        //screenY = (float) screenRes.height;

        //screenPreview.rect = new Rect(
        //    screenX * previewXPercentage,
        //    screenY * previewYPercentage,
        //    screenX * previewWidthPercentage,
        //    screenY * previewHeightPercentage
        //);
    }