示例#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 <vThirdPersonCamera>();
                if (tpCamera && tpCamera.target != transform)
                {
                    tpCamera.SetMainTarget(this.transform);
                }
            }
            if (hud == null && vHUDController.instance != null)
            {
                hud = vHUDController.instance;
                hud.Init(cc);
            }
        }