Files
FebGameJam/Assets/Scripts/TutorialScript.cs
T
2022-02-26 18:45:46 -06:00

22 lines
433 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TutorialScript : Trigger
{
public GameObject tutorialText;
public int currentLevel;
public void Start() {
currentLevel = PlayerPrefs.GetInt("CurrentLevel");
}
public override void Action()
{
if(currentLevel == 1){
tutorialText.SetActive(true);
}
}
}