Example #1
0
        //private float offsetEN_CH = 50;


        public void SetUpBillboard(Billboard bb, CallBack quitCallBack)
        {
            SAPEN.text = bb.sap.sapEN;

            SAPCH.text = bb.sap.sapCH;

            switch (bb.sap.sapType)
            {
            case HLHSAPType.Sentence:
                SAPEN.alignment = TextAnchor.MiddleLeft;
                SAPCH.alignment = TextAnchor.MiddleLeft;
                break;

            case HLHSAPType.Poem:
                SAPEN.alignment = TextAnchor.MiddleCenter;
                SAPCH.alignment = TextAnchor.MiddleCenter;
                break;
            }

            this.quitCallBack = quitCallBack;

            this.gameObject.SetActive(true);

            if (zoomCoroutine != null)
            {
                StopCoroutine(zoomCoroutine);
            }

            GameManager.Instance.soundManager.PlayAudioClip(CommonData.paperAudioName);
            zoomCoroutine = HUDZoomIn();

            StartCoroutine(zoomCoroutine);
        }
Example #2
0
        /// <summary>
        /// 初始化公告牌
        /// </summary>
        public void SetUpBillboard(Billboard bb)
        {
            billboardPlane.gameObject.SetActive(true);
            Text billboardContent = billboard.Find("Content").GetComponent <Text> ();

            billboardContent.text = bb.content;
        }
        private void EnterBillboard(Transform billboard)
        {
//			Debug.Log ("进入公告牌");

            Billboard bb = billboard.GetComponent <Billboard> ();

            expUICtr.SetUpBillboard(bb);
        }
Example #4
0
        /// <summary>
        /// 初始化公告牌
        /// </summary>
        public void SetUpBillboard(Billboard bb)
        {
            ExploreManager.Instance.MapWalkableEventsStopAction();

            billboardHUD.SetUpBillboard(bb, QuitBillboard);
        }
Example #5
0
 /// <summary>
 /// 显示billboard
 /// </summary>
 /// <param name="bb">Bb.</param>
 public void ShowBillboard(Billboard bb)
 {
     MapWalkableEventsStopAction();
     expUICtr.SetUpBillboard(bb);
 }