ZoeAppClass/Assets/Jogos/277/Scripts/TutorialMaterials.cs

42 lines
959 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TutorialMaterials: MonoBehaviour
{
public static bool finishedGame = false, ended = false;
int index = 0;
public Animator WinPanel, ani_mate;
public GameObject tutorial;
// Start is called before the first frame update
void Start()
{
int index = 0;
ended = false;
finishedGame = false;
GameControl jooj = GameObject.Find("GameControl").GetComponent<GameControl>();
jooj.ended = false;
jooj.finishedGame = false;
jooj.failedGame = false;
ani_mate.SetTrigger("DoAnime");
}
public void Action_Button()
{
ani_mate.SetTrigger("DoAnime");
}
public void FinalButton()
{
win();
}
void win()
{
GameControl jooj = GameObject.Find("GameControl").GetComponent<GameControl>();
jooj.finishedGame = true;
}
}