protected void OnClickedScreen() { CharacterParams characterParams = this.characterCameraView.csRender3DRT.GetCharacterParams(); DigimonModelPlayer component = base.GetComponent <DigimonModelPlayer>(); if (!this.isOpenScreen) { this.MoveTo(this.goSCR_HEADER, this.vPosSCR_HEADER, 0.18f, iTween.EaseType.linear); this.MoveTo(this.goSCR_DETAIL, this.vPosSCR_DETAIL, 0.18f, iTween.EaseType.linear); this.fullScreenButtonLabel.text = StringMaster.GetString("SystemButtonReturn"); if (null != component) { component.MonsterParams = characterParams; } this.characterCameraView.MoveToCenter(0.18f); } else { if (null != characterParams) { characterParams.transform.localScale = Vector3.one; } this.MoveTo(this.goSCR_HEADER, this.vOrgSCR_HEADER, 0.18f, iTween.EaseType.linear); this.MoveTo(this.goSCR_DETAIL, this.vOrgSCR_DETAIL, 0.18f, iTween.EaseType.linear); this.fullScreenButtonLabel.text = StringMaster.GetString("CharaDetailsFullScreen"); if (null != component) { component.MonsterParams = null; } this.characterCameraView.MoveToLeft(0.18f); } this.isOpenScreen = !this.isOpenScreen; this.characterCameraView.enableTouch = this.isOpenScreen; }
public void OnClickedScreen() { if (!this.isInitOpen) { this.InitOpenScreen(); this.isInitOpen = true; } CharacterParams characterParams = this.characterCameraView.csRender3DRT.GetCharacterParams(); DigimonModelPlayer component = base.GetComponent <DigimonModelPlayer>(); GameObject protectionButton = this.leftUI.GetProtectionButton(); if (!this.isOpenScreen) { this.MoveTo(this.goSCR_HEADER, this.vPosSCR_HEADER, 0.18f, null, iTween.EaseType.linear); this.MoveTo(this.goSCR_DETAIL, this.vPosSCR_DETAIL, 0.18f, null, iTween.EaseType.linear); this.MoveTo(protectionButton, this.vPosSCR_LOCKBTN, 0.18f, null, iTween.EaseType.linear); this.leftUI.SetModelViewState(CharacterDetailsLeftUI.ModelViewState.FULL_SCREEN); if (component != null) { component.MonsterParams = characterParams; } this.characterCameraView.MoveToCenter(0.18f); } else { if (characterParams != null) { characterParams.transform.localScale = Vector3.one; } this.MoveTo(this.goSCR_HEADER, this.vOrgSCR_HEADER, 0.18f, null, iTween.EaseType.linear); this.MoveTo(this.goSCR_DETAIL, this.vOrgSCR_DETAIL, 0.18f, null, iTween.EaseType.linear); this.MoveTo(protectionButton, this.vOrgSCR_LOCKBTN, 0.18f, null, iTween.EaseType.linear); this.leftUI.SetModelViewState(CharacterDetailsLeftUI.ModelViewState.SIMPLE); if (component != null) { component.MonsterParams = null; } this.characterCameraView.MoveToLeft(0.18f); } this.isOpenScreen = !this.isOpenScreen; this.characterCameraView.enableTouch = this.isOpenScreen; }