// Use this for initialization void Start() { switch (PlayerSt) { case PlayerEnum.PlayerOne: InstanceOne = this; break; case PlayerEnum.PlayerTwo: InstanceTwo = this; break; case PlayerEnum.PlayerThree: InstanceThree = this; break; case PlayerEnum.PlayerFour: InstanceFour = this; break; } DongGanCount = 1; DongGanTexture = GetComponent <UITexture>(); DongGanTexture.mainTexture = DongGanUI[0]; gameObject.SetActive(false); }
// Use this for initialization void Start() { Instance = this; DongGanTexture = GetComponent <UITexture>(); DongGanTexture.mainTexture = DongGanUI[0]; gameObject.SetActive(false); }
public void ClickStopDongGanBtOne(ButtonState val) { if (ClickStopDongGanBtOneEvent != null) { ClickStopDongGanBtOneEvent(val); } if (val == ButtonState.DOWN) { DongGanUICtrl.ShowDongGanInfo(); } }
public void ClickStopDongGanBtTwo(ButtonState val) { if (ClickStopDongGanBtTwoEvent != null) { ClickStopDongGanBtTwoEvent(val); } if (val == ButtonState.DOWN) { DongGanUICtrl.ShowDongGanInfo(); } pcvr.SetIsPlayerActivePcvr(); }
// Use this for initialization void Start() { Instance = this; DongGanTexture = GetComponent <UITexture>(); DongGanTexture.mainTexture = DongGanUI[0]; GameTextType gameTextVal = GlobalData.GetGameTextMode(); if (gameTextVal == GameTextType.Chinese) { DongGanUI = DongGanUICh; } else { DongGanUI = DongGanUIEn; } gameObject.SetActive(false); }
public static void ShowDongGanInfo(PlayerEnum playerIndex) { if (!ScreenDanHeiCtrl.IsStartGame) { return; } if (JiFenJieMianCtrl.GetInstance().GetIsShowFinishTask()) { return; } DongGanUICtrl instanceDG = null; switch (playerIndex) { case PlayerEnum.PlayerOne: instanceDG = InstanceOne; break; case PlayerEnum.PlayerTwo: instanceDG = InstanceTwo; break; case PlayerEnum.PlayerThree: instanceDG = InstanceThree; break; case PlayerEnum.PlayerFour: instanceDG = InstanceFour; break; } if (instanceDG == null) { return; } instanceDG.AddDongGanCount(); }
// Use this for initialization void Start() { Instance = this; GameTextType gameTextVal = XKGlobalData.GetGameTextMode(); //gameTextVal = GameTextType.English; //test. switch (gameTextVal) { case GameTextType.Chinese: DongGanUI = DongGanUI_Ch; break; case GameTextType.English: DongGanUI = DongGanUI_En; break; } DongGanCount = 1; DongGanTexture = GetComponent <UITexture>(); DongGanTexture.mainTexture = DongGanUI[0]; gameObject.SetActive(false); }