コード例 #1
0
 void Start()
 {
     if (hud == null)
     {
         hud = vHUDController.instance;
     }
 }
コード例 #2
0
        protected virtual IEnumerator CharacterInit()
        {
            yield return(new WaitForEndOfFrame());

            if (tpCamera == null)
            {
                tpCamera = FindObjectOfType <vCamera.vThirdPersonCamera>();
                if (tpCamera && tpCamera.target != transform)
                {
                    tpCamera.SetMainTarget(this.transform);
                }
            }

            if (!colorBloodHUD)
            {
                if (hud == null && vHUDController.instance != null)
                {
                    hud = vHUDController.instance;
                    hud.Init(cc);
                }
            }
            else
            {
                if (hudColor == null && ColorHUDController.instance != null)
                {
                    hudColor = ColorHUDController.instance;
                    hudColor.Init(cc);
                }
            }
        }
コード例 #3
0
 public virtual void FindHUD()
 {
     if (hud == null && vHUDController.instance != null)
     {
         hud = vHUDController.instance;
         hud.Init(cc);
     }
 }
コード例 #4
0
        public virtual void UpdateHUD()
        {
            if (hud == null)
            {
                if (vHUDController.instance != null)
                {
                    hud = vHUDController.instance;
                    hud.Init(cc);
                }
                else
                {
                    return;
                }
            }

            hud.UpdateHUD(cc);
        }