// Token: 0x06002125 RID: 8485 RVA: 0x0009B9BF File Offset: 0x00099BBF
 public void SetLayoutHorizontal()
 {
     if (this.uiCamera)
     {
         CombatHealthBarViewer.LayoutForCamera(this.uiCamera);
     }
 }
Beispiel #2
0
 private static void UpdateAllHealthBarPositionsVR(On.RoR2.UI.CombatHealthBarViewer.orig_UpdateAllHealthbarPositions orig, RoR2.UI.CombatHealthBarViewer self, Camera sceneCam, Camera uiCam)
 {
     foreach (CombatHealthBarViewer.HealthBarInfo healthBarInfo in self.victimToHealthBarInfo.Values)
     {
         Vector3 position = healthBarInfo.sourceTransform.position;
         position.y += healthBarInfo.verticalOffset;
         Vector3 vector = sceneCam.transform.parent.InverseTransformPoint(position);
         healthBarInfo.healthBarRootObjectTransform.position   = vector;
         healthBarInfo.healthBarRootObjectTransform.localScale = 0.1f * Vector3.Distance(uiCam.transform.position, vector) * Vector3.one;
     }
 }