public void ShowGuideTip(string tipText, Vector2 tipPos, EGuideGirlPos tipGirlPos) { if (string.IsNullOrEmpty(tipText)) { this.tipTransform.gameObject.SetActive(false); } else { this.tipTransform.gameObject.SetActive(true); this.tipTransform.localPosition = tipPos; this.tipText.text = tipText; } switch (tipGirlPos) { case EGuideGirlPos.TYPE_NONE: tipIcon.gameObject.SetActive(false); break; case EGuideGirlPos.TYPE_LEFT: tipIcon.gameObject.SetActive(true); tipIcon.transform.localScale = new Vector3(-1, 1, 1); tipIcon.transform.localPosition = new Vector3(-100, 0, 0); break; case EGuideGirlPos.TYPE_RIGHT: tipIcon.gameObject.SetActive(true); tipIcon.transform.localScale = new Vector3(1, 1, 1); tipIcon.transform.localPosition = new Vector3(100, 0, 0); break; } }
public override void Read(XmlElement os) { base.Read(os); this.TipSound = os.GetString("TipSound"); this.TipPosition = os.GetVector3("TipPosition"); this.TipText = os.GetString("TipText"); this.TipGirlPos = (EGuideGirlPos)os.GetInt32("TipGirlPos"); this.TargetScale = os.GetVector3("TargetScale"); this.TargetPos = os.GetVector3("TargetPos"); this.TargetEffectPath = os.GetString("TargetEffectPath"); }
public override void Read(XmlElement os) { base.Read(os); this.TipSound = os.GetString("TipSound"); this.TipPosition = os.GetVector2("TipPosition"); this.TipText = os.GetString("TipText"); this.TipGirlPos = (EGuideGirlPos)os.GetInt32("TipGirlPos"); this.OperationType = (EGuideUIOperationType)os.GetInt32("OperationType"); this.BoardType = (EGuideBoardType)os.GetInt32("BoardType"); this.BoardSize = os.GetVector2("BoardSize"); this.LockKey = os.GetString("LockKey"); this.RowType = (EGuideRowType)os.GetInt32("RowType"); }