Newer
Older
// Controls the Tutorial Messages. Activates the corresponding tutorial message
// and hides all other ones on button click.
[SerializeField] List<string> keyTut;
[SerializeField] GameObject textPrefab;
GameObject activeMessage = null;
Dictionary<string, GameObject> messages = new Dictionary<string, GameObject>();
Camera.main.GetComponent<BaseCameraController>().SetUserControlEnabled(false);
//create Dict with Structs
for (int i = 0; i < keyTut.Count; i++)
{
// Called by the Tutorial Buttons
public void ActivateTutorial(string tutorialType)
}
if ( tutorialType == "return")
{
SceneLoader.instance.LoadScene("Forest");
return;
}
activeMessage = messages[tutorialType];
activeMessage.SetActive(true);