25 lines
403 B
C#
25 lines
403 B
C#
using UnityEngine;
|
|
|
|
public class pause : MonoBehaviour
|
|
{
|
|
public void play()
|
|
{
|
|
Time.timeScale = 1;
|
|
}
|
|
public void Pause()
|
|
{
|
|
Time.timeScale = 0;
|
|
}
|
|
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|