mirror of
https://github.com/frizbee19/FebGameJam.git
synced 2026-09-11 08:17:01 +00:00
Clouds and Book triggers
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user