void Start() { if (hud == null) { hud = vHUDController.instance; } }
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); } } }
public virtual void FindHUD() { if (hud == null && vHUDController.instance != null) { hud = vHUDController.instance; hud.Init(cc); } }
public virtual void UpdateHUD() { if (hud == null) { if (vHUDController.instance != null) { hud = vHUDController.instance; hud.Init(cc); } else { return; } } hud.UpdateHUD(cc); }