Commit 99dbc98f authored by KenzyAshour2's avatar KenzyAshour2

closecanva script was added

parent 2e62a0e2
...@@ -4,10 +4,19 @@ using UnityEngine; ...@@ -4,10 +4,19 @@ using UnityEngine;
public class CloseCanva : MonoBehaviour public class CloseCanva : MonoBehaviour
{ {
[SerializeField] private GameObject canva; [SerializeField] GameObject canva;
public void CloseCanvas()
void Start()
{ {
canva.SetActive(false);
Time.timeScale = 0f;
AudioListener.pause = true;
} }
} public void CloseTheCanva()
{
canva.SetActive(false);
Time.timeScale = 1f;
AudioListener.pause = false;
}
}
\ No newline at end of file
...@@ -135,8 +135,8 @@ Material: ...@@ -135,8 +135,8 @@ Material:
- _XRMotionVectorsPass: 1 - _XRMotionVectorsPass: 1
- _ZWrite: 0 - _ZWrite: 0
m_Colors: m_Colors:
- _BaseColor: {r: 0, g: 1, b: 0.10832865, a: 0.6829566} - _BaseColor: {r: 0, g: 1, b: 0.10832565, a: 0.13279839}
- _Color: {r: 0, g: 1, b: 0.10834024, a: 0.15577376} - _Color: {r: 0, g: 1, b: 0.1083286, a: 0.6829566}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1} - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
m_BuildTextureStacks: [] m_BuildTextureStacks: []
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment