Ejemplo n.º 1
0
    private void LosePrimarilyPlayer(Player obj)
    {
        for (int i = 0; i < hands.Length; i++)
        {
            hands[i].UserID = 0;
        }
        LoseTips.DOFillAlpha(1, 0.5f);
        menuButtonGroupPanel.Hide();
        PrimaryPlay = null;
        menuButtonGroupPanel.userID = 0;

        TimeTool.Instance.AddDelayed(TimeDownType.NoUnityTimeLineImpact, MainData.Instance.aP_BideTime, OnDelayedCall);
    }
Ejemplo n.º 2
0
 /// <summary>
 /// 教学 第二步
 /// </summary>
 public void Tutorial_2()
 {
     Teach1_Anima_Hide();
     IsTeaching = false;
     BGCanvasGroup.blocksRaycasts = true;
     TextGroup.transform.GetChild(1).GetComponent <Text>().text = "";
     BGCanvasGroup.DOFillAlpha(1, 0.5f).OnComplete(() => {
         TextGroup.DOFillAlpha(1, 0.5f).OnComplete(() => {
             ContentText.DOText(Tips[1], Time_daziji[1]).OnComplete(() => {
                 TimeTool.Instance.AddDelayed(TimeDownType.NoUnityTimeLineImpact, DelayTime, () => {
                     baize.enabled = false;
                     BG_Close();
                     Teach2.DOFillAlpha(1, 0.5f).OnComplete(() => {
                         IsTeaching = true;
                     });
                 });
             });
         });
     });
 }
Ejemplo n.º 3
0
    public override void Open()
    {
        EventManager.AddUpdateListener(MTFrame.MTEvent.UpdateEventEnumType.Update, "OnUpdate", OnUpdate);

        foreach (var item in tweenObjects)
        {
            item.Stop();
        }

        contentPanel.Hide();
        gameContentPanel.Hide();
        Tips.DOFillAlpha(0, 0.5f);
        Group_Button.DOFillAlpha(1, 0.5f);
        Group_Button.transform.DOSize(Vector3.one, 0.5f).OnComplete(() =>
        {
            foreach (BaseButton button in baseButtons)
            {
                (button as MenuButton).Open();
            }
        });
    }
Ejemplo n.º 4
0
    public override void InitEvent()
    {
        base.InitEvent();
        BackButton.onClick.AddListener(() => {
            AudioManager.PlayAudio("按键声音", transform, MTFrame.MTAudio.AudioEnunType.Effset);
            TCZZState.SwitchPanel(SwitchPanelEnum.StartMenuPanel);
        });

        ConcirmButton.onClick.AddListener(() => {
            CloseTips();
            AudioManager.PlayAudio("按键声音", transform, MTFrame.MTAudio.AudioEnunType.Effset);
            ModelControl.Instance.IsGameStart = false;
            string ImgName = Time.time.ToString();
            WorksDataControl.Instance.WorksDisplayPath.Add(ImgName);
            string str = Application.streamingAssetsPath + "/" + SaveImaPath + "/" + ImgName + ".jpg";
            StartCoroutine(getScreenTexture(str));
            completePanel.Open();
        });

        tips1Button.onClick.AddListener(() => {
            tips1.DOFillAlpha(0, 0.5f, TweenMode.NoUnityTimeLineImpact).OnComplete(() => {
                if (tips2.alpha == 0)
                {
                    Handtips.gameObject.GetComponent <Animation>().Stop();
                    Handtips.DOFillAlpha(0, 0.5f, TweenMode.NoUnityTimeLineImpact);
                }
            });
            tips1.blocksRaycasts = false;
        });

        tips2Button.onClick.AddListener(() => {
            tips2.DOFillAlpha(0, 0.5f, TweenMode.NoUnityTimeLineImpact).OnComplete(() => {
                if (tips1.alpha == 0)
                {
                    Handtips.gameObject.GetComponent <Animation>().Stop();
                    Handtips.DOFillAlpha(0, 0.5f, TweenMode.NoUnityTimeLineImpact);
                }
            });
            tips2.blocksRaycasts = false;
        });
    }
Ejemplo n.º 5
0
 public void Opendropdown()
 {
     Debug.Log("下拉菜单打开");
     dropdownGroup.DOFillAlpha(1.0f, 0.5f, TweenMode.NoUnityTimeLineImpact);
     dropdownGroup.blocksRaycasts = true;
 }