2022-01-16 23:20:47 +03:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
|
|
|
public class CanvasChanger : MonoBehaviour
|
|
|
|
{
|
2022-01-17 17:49:27 +03:00
|
|
|
public GameObject canvasToOn;
|
|
|
|
public GameObject canvasToOff;
|
2022-01-16 23:20:47 +03:00
|
|
|
|
|
|
|
public void ChangeCanvas()
|
|
|
|
{
|
|
|
|
if (canvasToOn != null)
|
2022-01-17 17:49:27 +03:00
|
|
|
canvasToOn.SetActive(true);
|
2022-01-16 23:20:47 +03:00
|
|
|
if (canvasToOn != null)
|
2022-01-17 17:49:27 +03:00
|
|
|
canvasToOff.SetActive(false);
|
2022-01-16 23:20:47 +03:00
|
|
|
}
|
|
|
|
}
|