void GameFlowController_Current_StateChanged (Prime31.StateKit.SKState<GameFlowController> obj)
        {
            if(obj is InMinigame)
                MiniScript = MinigameController.Current.CurrentMinigame.MinigameScript;

            if(obj is MinigameFinished)
                MiniScript = null;
        }
        private void Start()
        {
            if (trans == null)
                trans = GetComponentInChildren<RectTransform>();

            GameFlowController.Current.StateChanged += GameFlowController_Current_StateChanged;

            MiniScript = null;
        }