Clouds and Book triggers

This commit is contained in:
Rizvee
2022-02-25 15:06:43 -06:00
parent ea2a88b5ea
commit 38baefcf2d
70 changed files with 2302 additions and 41 deletions
+21
View File
@@ -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);
}
}
}