コード例 #1
0
        void Awake()
        {
            Instance = this;

            waveAudio = GetComponent <AudioSource>();

//			waveTrans = GameObject.Find("Wave").transform;
            uiCam = Utility.GetUICam();

            // 获取背景的初始位置.
            bgOriPos = downObj.transform.position;

            // 检查图片是否为空.
//			CheckTexs();
        }
コード例 #2
0
 void OnDestroy()
 {
     InitMatOffset();
     Instance = null;
 }