Ejemplo n.º 1
0
        //ScreenControlObj _screenControlObj;
        //ScreenControlObj screenControlObj
        //{
        //    get { if (_screenControlObj == null) _screenControlObj = FindObjectOfType<ScreenControlObj>(); return _screenControlObj; }
        //}
        private void Start()
        {
            //隐藏RecUI的UI
            transform.GetChild(0).gameObject.SetActive(false);

            recordOperate         = FindObjectOfType <RecordOperate>();
            recUIBtnStateManageer = FindObjectOfType <RecUIBtnStateManageer>();

            stopRecBtn = transform.Find("BackGround/Button").GetComponent <Button>();
            recTip     = stopRecBtn.transform.Find("Tip").gameObject;

            recTip.SetActive(false);

            stopRecBtn.onClick.AddListener(() =>
            {
                recordOperate.StopRec();
            });
        }
Ejemplo n.º 2
0
 private void Start()
 {
     recordOperate = FindObjectOfType <RecordOperate>();
 }