#include "Data/Levels/Common/Tutorial/Scripts/Utilities.bhass"

CTutorial@ pTutorial;
CLocalizer@ pLocalizer;
CGameText@ pText;
CGameObject@ pDialog;
CMarvin@ pMarvin;
CGameSkin@ pArrow;

//------------------------------------------------ Init/Release ---------------------------------------------------
void InitTutorial()
{
    @pTutorial = GetGame().GetCurrentLevel().GetTutorial();
    @pLocalizer = GetGame().GetLocalizer();
    @pText = pTutorial.GetGameText("Text");
    @pMarvin = GetGame().GetCurrentLevel().GetMarvin();
	@pArrow = cast<CGameSkin>(pTutorial.GetGameObject("Arrow"));
    GetGame().GetCurrentLevel().Deactivate();
    pMarvin.Deactivate();
    @pDialog = pTutorial.GetGameObject("Dialog");
    pDialog.SetVisible(true);
}

void ReleaseTutorial()
{
    GetGame().GetCurrentLevel().Activate();
    pMarvin.Activate();
    pText.SetVisible(false);
    pDialog.SetVisible(false);
}

//------------------------------------------------ Script Functions ---------------------------------------------------
void EnterMoon_T8_100()
{
	pText.SetVisible(true);
	pText.SetText(pLocalizer.LocalizeText("MOON_T8_100"));   
}

