void Awake() { Instance = this; waveAudio = GetComponent <AudioSource>(); // waveTrans = GameObject.Find("Wave").transform; uiCam = Utility.GetUICam(); // 获取背景的初始位置. bgOriPos = downObj.transform.position; // 检查图片是否为空. // CheckTexs(); }
void OnDestroy() { InitMatOffset(); Instance = null; }