15 lines
394 B
C#
15 lines
394 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
|
|
public class pindahscene : MonoBehaviour
|
|
{
|
|
public void pindahScene(){
|
|
SceneManager.LoadScene (SceneManager.GetActiveScene ().buildIndex + 1);
|
|
}
|
|
public void sampleScene(){
|
|
SceneManager.LoadScene (SceneManager.GetActiveScene ().buildIndex - 1);
|
|
}
|
|
}
|