public void Setting(MahjongMachine mjMachine, PengChiGangTingHuType type = PengChiGangTingHuType.PENG) { this.mjMachine = mjMachine; this.type = type; mjGame = mjMachine.mjGame; mjAssets = mjMachine.mjAssets; mjAssetsMgr = mjMachine.mjAssetsMgr; uiCanvasTransform = mjMachine.uiCanvasTransform; uiBtn = mjAssetsMgr.pengChiGangTingHuBtns[(int)type].transform; orgUIBtnScale = uiBtn.localScale; if (type != PengChiGangTingHuType.GUO && type != PengChiGangTingHuType.CANCEL) { fxAddPS = uiBtn.Find("FxAdd").GetComponent <ParticleSystem>(); fxOutGuangQuanPS = uiBtn.Find("FxOutGuangQuan").GetComponent <ParticleSystem>(); uiInGuangQuanPS = uiBtn.Find("UIInGuangQuan").GetComponent <ParticleSystem>(); } EventTriggerListener.Get(uiBtn.gameObject).onDown = OnButtonDown; EventTriggerListener.Get(uiBtn.gameObject).onClick = OnButtonClick; State4(); }
public void Setting(MahjongMachine mjMachine) { this.mjMachine = mjMachine; mjGame = mjMachine.mjGame; mjAssets = mjMachine.mjAssets; mjAssetsMgr = mjMachine.mjAssetsMgr; uiCanvasTransform = mjMachine.canvasHandPaiTransform; }
public void Setting(MahjongMachine mjMachine) { this.mjMachine = mjMachine; mjGame = mjMachine.mjGame; mjAssets = mjMachine.mjAssets; mjAssetsMgr = mjMachine.mjAssetsMgr; uiCanvasTransform = mjMachine.uiCanvasTransform; prefabUISwapPaiingTips = mjAssets.uiPrefabDict[(int)PrefabIdx.UI_SWAPPAI_TIPS][0]; }
public void Setting(MahjongMachine mjMachine) { this.mjMachine = mjMachine; mjGame = mjMachine.mjGame; mjAssets = mjMachine.mjAssets; mjAssetsMgr = mjMachine.mjAssetsMgr; mjTable = mjMachine.mjtableTransform; prefabPoint = mjAssets.defaultPrefabDict[(int)PrefabIdx.MJPAI_POINT][0]; }
public void Setting(MahjongMachine mjMachine) { this.mjMachine = mjMachine; mjAssets = mjMachine.mjAssets; mjAssetsMgr = mjMachine.mjAssetsMgr; mjTable = mjMachine.mjtableTransform; prefabSwapPaiHintOppositeArrow = mjAssets.effectPrefabDict[(int)PrefabIdx.SWAPPAI_TIPS_OPP_ARROW][0]; prefabSwapPaiHintClockWiseArrow = mjAssets.effectPrefabDict[(int)PrefabIdx.SWAPPAI_TIPS_CLOCKWISE_ARROW][0]; prefabSwapPaiHintAntiClockWiseArrow = mjAssets.effectPrefabDict[(int)PrefabIdx.SWAPPAI_TIPS_ANTICLOCKWISE_ARROW][0]; }
public void Setting(MahjongMachine mjMachine) { this.mjMachine = mjMachine; mjGame = mjMachine.mjGame; mjAssets = mjMachine.mjAssets; defaultPrefabDict = mjAssets.defaultPrefabDict; effectPrefabDict = mjAssets.effectPrefabDict; mjpaiPrefabDict = mjAssets.mjpaiPrefabDict; uiPrefabDict = mjAssets.uiPrefabDict; }
public void Setting(MahjongMachine mjMachine) { this.mjMachine = mjMachine; mjAssets = mjMachine.mjAssets; mjAssetsMgr = mjMachine.mjAssetsMgr; canvas = mjMachine.uiCanvasTransform; prefabPlayerTouXiang = mjAssets.uiPrefabDict[(int)PrefabIdx.UI_TOUXIANG][0]; queYiMenSpritesDict = mjAssets.settingDataAssetsMgr.GetSpritesIntKeyDict((int)SpritesType.QUE_YI_MEN); huaSeFlag = queYiMenSpritesDict[(int)SpriteIdx.HUA_SE_FLAG]; }
/// <summary> /// 设置骰子机 /// </summary> public void Setting(MahjongMachine mjMachine) { this.mjMachine = mjMachine; mjGame = mjMachine.mjGame; mjAssets = mjMachine.mjAssets; mjAssetsMgr = mjMachine.mjAssetsMgr; mjTable = mjMachine.mjtableTransform; numSpritesDict = mjMachine.mjAssets.settingDataAssetsMgr.GetSpritesIntKeyDict((int)SpritesType.DICE_MACHINE_TIMER_NUM); blueNums = numSpritesDict[(int)SpriteIdx.BLUE_NUMS]; prefabDiceMachine = mjAssets.defaultPrefabDict[(int)PrefabIdx.DICE_MACHINE][0]; }
public void Setting(MahjongMachine mjMachine) { this.mjMachine = mjMachine; mjGame = mjMachine.mjGame; mjAssets = mjMachine.mjAssets; mjAssetsMgr = mjMachine.mjAssetsMgr; uiCanvasTransform = mjMachine.uiCanvasTransform; prefabUiPaiTips = mjAssets.uiPrefabDict[(int)PrefabIdx.UI_CHIPAI_TIPS][0]; paiTipsOrgSize = prefabUiPaiTips.GetComponent <RectTransform>().sizeDelta; prefabUiPaiDetailTips = mjAssets.uiPrefabDict[(int)PrefabIdx.UI_CHIPAI_DETAIL_TIPS][0]; detailTipsSize = prefabUiPaiDetailTips.GetComponent <RectTransform>().sizeDelta; }
public void Setting(MahjongMachine mjMachine) { this.mjMachine = mjMachine; mjGame = mjMachine.mjGame; mjAssets = mjMachine.mjAssets; mjAssetsMgr = mjMachine.mjAssetsMgr; uiCanvasTransform = mjMachine.uiCanvasTransform; prefabUIScoreDec = mjAssets.uiPrefabDict[(int)PrefabIdx.UI_SCORE][0]; prefabUIScoreInc = mjAssets.uiPrefabDict[(int)PrefabIdx.UI_SCORE][1]; prefabSpeedLine = mjAssets.effectPrefabDict[(int)PrefabIdx.UI_SPEED_LINE_EFFECT][0]; prefabStarShan = mjAssets.effectPrefabDict[(int)PrefabIdx.UI_STAR_SHAN_EFFECT][0]; }
public void Setting(MahjongMachine mjMachine) { this.mjMachine = mjMachine; mjGame = mjMachine.mjGame; mjAssets = mjMachine.mjAssets; mjAssetsMgr = mjMachine.mjAssetsMgr; uiCanvasTransform = mjMachine.uiCanvasTransform; prefabUiSelectHuaSeHandPaiTips = mjAssets.uiPrefabDict[(int)PrefabIdx.UI_SELECT_SWAP_HANDPAI][0]; selectSpriteDict = mjMachine.mjAssets.settingDataAssetsMgr.GetSpritesIntKeyDict((int)SpritesType.SELECT); que_text = selectSpriteDict[(int)SpriteIdx.SELECT_QUE_TEXT]; ding_text = selectSpriteDict[(int)SpriteIdx.SELECT_DING_TEXT]; numSprites = selectSpriteDict[(int)SpriteIdx.SELECT_NUMS]; greyNumSprites = selectSpriteDict[(int)SpriteIdx.SELECT_NUMS_GREY]; kuohaoSprites = selectSpriteDict[(int)SpriteIdx.SELECT_KUOHAO]; }
public void Setting(MahjongMachine mjMachine) { this.mjMachine = mjMachine; mjGame = mjMachine.mjGame; mjAssets = mjMachine.mjAssets; mjAssetsMgr = mjMachine.mjAssetsMgr; uiCanvasTransform = mjMachine.uiCanvasTransform; pcghtBtnLayout = uiCanvasTransform.Find("PengChiGangHuTingBtnLayout"); layoutOrgPos = pcghtBtnLayout.localPosition; uiHuBtn.Setting(mjMachine); uiPengBtn.Setting(mjMachine, PengChiGangTingHuType.PENG); uiChiBtn.Setting(mjMachine, PengChiGangTingHuType.CHI); uiGangBtn.Setting(mjMachine, PengChiGangTingHuType.GANG); uiTingBtn.Setting(mjMachine, PengChiGangTingHuType.TING); uiGuoBtn.Setting(mjMachine, PengChiGangTingHuType.GUO); uiCancelBtn.Setting(mjMachine, PengChiGangTingHuType.CANCEL); }
public void Setting(MahjongMachine mjMachine) { this.mjMachine = mjMachine; mjGame = mjMachine.mjGame; mjAssets = mjMachine.mjAssets; mjAssetsMgr = mjMachine.mjAssetsMgr; uiCanvasTransform = mjMachine.uiCanvasTransform; uiBtn = mjAssetsMgr.pengChiGangTingHuBtns[(int)PengChiGangTingHuType.HU].transform; orgUIBtnScale = uiBtn.localScale; uiBtnPS = uiBtn.GetComponent <ParticleSystem>(); huTextPS = uiBtn.Find("HuText").GetComponent <ParticleSystem>(); huTextHuXiPS = uiBtn.Find("HuTextHuXi").GetComponent <ParticleSystem>(); meiHuaImgPS = uiBtn.Find("MeiHuaImg").GetComponent <ParticleSystem>(); outsideExtGuangQuanPS = uiBtn.Find("OutsideExtGuangQuan").GetComponent <ParticleSystem>(); petalsPS = uiBtn.Find("Petals").GetComponent <ParticleSystem>(); petalsPS2 = uiBtn.Find("Petals2").GetComponent <ParticleSystem>(); petalsPS3 = uiBtn.Find("Petals3").GetComponent <ParticleSystem>(); Image img = uiBtn.GetComponent <Image>(); mat = img.material; meiHuaImgScale = meiHuaImgPS.transform.DOLocalRotate(new Vector3(0, 0, 10f), 1.5f); meiHuaImgScale.SetAutoKill(false); meiHuaImgScale.SetEase(Ease.Linear).SetLoops(-1, LoopType.Yoyo); meiHuaImgScale.Pause(); mjAssetsMgr.AppendToDestoryPool(meiHuaImgScale); EventTriggerListener.Get(uiBtn.gameObject).onDown = OnButtonDown; EventTriggerListener.Get(uiBtn.gameObject).onClick = OnButtonClick; State5(); }
public void Setting(MahjongMachine mjMachine) { this.mjMachine = mjMachine; mjAssets = mjMachine.mjAssets; mjAssetsMgr = mjMachine.mjAssetsMgr; uiCanvasTransform = mjMachine.uiCanvasTransform; uiTouXiang = mjMachine.uiTouXiang; huaSeStartPosSeat = mjMachine.huaSeStartPosSeat; prefabUISelectQueYiMen = mjAssets.uiPrefabDict[(int)PrefabIdx.UI_SELECT_QUEMEN][0]; prefabUISprite = mjAssets.uiPrefabDict[(int)PrefabIdx.UI_SPRITE][0]; prefabUIHuaSeFlag = mjAssets.uiPrefabDict[(int)PrefabIdx.UI_HUASE_FLAG][0]; queYiMenSpritesDict = mjAssets.settingDataAssetsMgr.GetSpritesIntKeyDict((int)SpritesType.QUE_YI_MEN); queHuaSe = queYiMenSpritesDict[(int)SpriteIdx.QUE_HUA_SE]; queHuaSeMove = queYiMenSpritesDict[(int)SpriteIdx.QUE_HUA_SE_MOVE]; huaSeFlag = queYiMenSpritesDict[(int)SpriteIdx.HUA_SE_FLAG]; for (int i = 1; i <= 3; i++) { uiQueMenMoveHuaSe[i] = new UISelectQueMenMoveHuaSe(this, i); } }