void Start() { //加载场景UI UIInitSceneView initUI = UISceneCtrl.Instance.Load(UISceneType.Init).GetComponent <UIInitSceneView>(); initUI.SetUI(GlobalInit.Instance.IsPlaySound); initUI.OnClickStartGameBtn = OnClickStartGameBtn; initUI.OnClickAudioBtn = OnClickAudioBtn; //模拟点击播放声音按钮 OnClickAudioBtn(GlobalInit.Instance.IsPlaySound); }
void Start() { //克隆InitViewScene GameObject initClone = UISceneCtrl.GetInstance.LoadScene(SceneType.Init); //从场景上的到View m_InitView = initClone.GetComponent <UIInitSceneView>(); m_InitView.m_imgLog.transform.localPosition = Vector3.up * 1000; //Log图标的动画 LogAnimation(); }