Exemplo n.º 1
0
 protected override void OnStart()
 {
     base.OnStart();
     HeadBgVec = HeadBg.transform.localPosition;
     if (HeadBg.GetComponent <UIWidget>() != null)
     {
         HeadBgDepth = HeadBg.GetComponent <UIWidget>().depth;
         HeadDepth   = HeadPortrait.GetComponent <UIWidget>().depth;
     }
     else
     {
         HeadBgDepth = -1;
         HeadDepth   = -1;
     }
 }
Exemplo n.º 2
0
 public void Reset()
 {
     ResetTimer();
     CardGroup.Reset();
     BankerIcon.SetActive(false);
     CardGroup.gameObject.SetActive(false);
     MoveGold.SetActive(false);
     HeadBg.transform.localPosition = HeadBgVec;
     if (HeadBgDepth != -1)
     {
         HeadBg.GetComponent <UIWidget>().depth = HeadBgDepth;
     }
     if (HeadDepth != -1)
     {
         HeadPortrait.GetComponent <UIWidget>().depth = HeadBgDepth;
     }
     ResetHeadClick();
     if (AllBeat != null)
     {
         AllBeat.Reset();
     }
 }