forked from mevulfmp3/hangtian
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
505 B
28 lines
505 B
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
|
|
public class Common : MonoBehaviour
|
|
{
|
|
public GameObject Stage1;
|
|
|
|
public void RunStage1()
|
|
{
|
|
SceneManager.LoadScene(1, LoadSceneMode.Single);
|
|
}
|
|
|
|
public void RunStage2()
|
|
{
|
|
SceneManager.LoadScene(2, LoadSceneMode.Single);
|
|
}
|
|
|
|
public void Update()
|
|
{
|
|
if (PinGM.target > 6)
|
|
{
|
|
Stage1.SetActive(true);
|
|
}
|
|
}
|
|
}
|