fix:代码提初始化

This commit is contained in:
zhangjiajia
2026-05-08 15:34:53 +08:00
parent af67dcce8c
commit 2540141343
4131 changed files with 1239331 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Mute : MonoBehaviour
{
Camera cam;
public GameObject Audio;
// Start is called before the first frame update
void Start()
{
cam = Camera.main;
Audio = GameObject.Find("Enviro 3/Audio");
}
// Update is called once per frame
void Update()
{
}
public void GlobalMute()
{
Audio.SetActive(false);
//Audio.SetActive(false);
}
public void UnMute()
{
Audio.SetActive(true);
//Audio.SetActive(true);
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 3312a4d0e89744f408b9f55c3857f6e4
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: