36 lines
791 B
C#
36 lines
791 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
|
|
public class tutorial_Globo : MonoBehaviour
|
|
{
|
|
public Animator anim_tuto;
|
|
public GameObject tutorial;
|
|
public GameObject btnstart;
|
|
private GameObject canvasGame;
|
|
public GameObject originalCamera;
|
|
|
|
private void Awake()
|
|
{
|
|
//originalCamera = GameObject.Find("Main Camera");
|
|
//originalCamera.SetActive(false);
|
|
canvasGame = GameObject.Find("CanvasGame");
|
|
canvasGame.SetActive(false);
|
|
}
|
|
|
|
public void DestroyTutorial()
|
|
{
|
|
canvasGame.SetActive(true);
|
|
Debug.Log("Bruh");
|
|
Destroy(tutorial);
|
|
}
|
|
|
|
public void Start_Tutorial()
|
|
{
|
|
|
|
anim_tuto.SetTrigger("Animated");
|
|
Destroy(btnstart);
|
|
}
|
|
}
|