public void Init()
    {
        IsShow = false;
        SettingsPanel.Init();
        VolumePanel.Init();
        PlayPBPanel.Init();

        IsLive             = false;
        PlayBtnChildImage  = PlayBtn.transform.GetChild(0).gameObject.GetComponent <Image>();
        PauseBtnChildImage = PauseBtn.transform.GetChild(0).gameObject.GetComponent <Image>();

        EventTriggerListener.Get(BackBtn.gameObject).OnPtClick    = ClickBackBtn;
        EventTriggerListener.Get(PlayBtn.gameObject).OnPtClick    = PlayOrPause;
        EventTriggerListener.Get(PauseBtn.gameObject).OnPtClick   = PlayOrPause;
        EventTriggerListener.Get(NextBtn.gameObject).OnPtClick    = ClickNextBtn;
        EventTriggerListener.Get(VolumeBtn.gameObject).OnPtClick  = ClickVolumeBtn;
        EventTriggerListener.Get(SettingBtn.gameObject).OnPtClick = ClickSettingBtn;
        EventTriggerListener.Get(FocusBtn.gameObject).OnPtClick   = ClickFocusBtn;
        EventTriggerListener.Get(LockBtn.gameObject).OnPtClick    = ClickLockBtn;
        VolumePanel.ChangVolumePercentCallback = VolumeValueChanged;

        EventTriggerListener.Get(this.gameObject).OnPtEnter        = OnPointerEnter;
        EventTriggerListener.Get(this.gameObject).OnPtExit         = OnPointerExit;
        EventTriggerListener.Get(BackBtn.gameObject).OnPtEnter     = OnPointerEnter;
        EventTriggerListener.Get(BackBtn.gameObject).OnPtExit      = OnPointerExit;
        EventTriggerListener.Get(PlayBtn.gameObject).OnPtEnter     = OnPointerEnterPlay;
        EventTriggerListener.Get(PlayBtn.gameObject).OnPtExit      = OnPointerExitPlay;
        EventTriggerListener.Get(PauseBtn.gameObject).OnPtEnter    = OnPointerEnterPause;
        EventTriggerListener.Get(PauseBtn.gameObject).OnPtExit     = OnPointerExitPause;
        EventTriggerListener.Get(NextBtn.gameObject).OnPtEnter     = OnPointerEnter;
        EventTriggerListener.Get(NextBtn.gameObject).OnPtExit      = OnPointerExit;
        EventTriggerListener.Get(VolumeBtn.gameObject).OnPtEnter   = OnPointerEnter;
        EventTriggerListener.Get(VolumeBtn.gameObject).OnPtExit    = OnPointerExit;
        EventTriggerListener.Get(VolumePanel.gameObject).OnPtEnter = OnPointerEnter;
        EventTriggerListener.Get(VolumePanel.gameObject).OnPtExit  = OnPointerExit;
        EventTriggerListener.Get(PlayPBPanel.gameObject).OnPtEnter = OnPointerEnter;
        EventTriggerListener.Get(PlayPBPanel.gameObject).OnPtExit  = OnPointerExit;
        EventTriggerListener.Get(SettingBtn.gameObject).OnPtEnter  = OnPointerEnter;
        EventTriggerListener.Get(SettingBtn.gameObject).OnPtExit   = OnPointerExit;
        EventTriggerListener.Get(FocusBtn.gameObject).OnPtEnter    = OnPointerEnterFocusBtn;
        EventTriggerListener.Get(FocusBtn.gameObject).OnPtExit     = OnPointerExitFocusBtn;
        EventTriggerListener.Get(LockBtn.gameObject).OnPtEnter     = OnPointerEnterLockBtn;
        EventTriggerListener.Get(LockBtn.gameObject).OnPtExit      = OnPointerExitLockBtn;

        PlayerBtnIsReplayTextWhenKTTV(false);
        SetLockBtnInteractable(IsEnableLockBtn);
    }
示例#2
0
 public void Load()
 {
     videoSettings.Init();
     audioSettings.Init();
 }