Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Use this for initialization
- void Start () {
- }
- // Update is called once per frame
- void Update () {
- }
- public void Pause() {
- if (Time.timeScale == 1) {
- Time.timeScale == 0;
- }
- else if (Time.timeScale == 0) {
- Time.timeScale == 1;
- }
- }
Add Comment
Please, Sign In to add comment