53 lines
953 B
C#
53 lines
953 B
C#
|
|
using System.Collections;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using UnityEngine;
|
|||
|
|
using UnityEngine.UI;
|
|||
|
|
|
|||
|
|
[System.Serializable]
|
|||
|
|
public class healthSliderInfo
|
|||
|
|
{
|
|||
|
|
public string Name;
|
|||
|
|
public Transform sliderOwner;
|
|||
|
|
public GameObject sliderGameObject;
|
|||
|
|
public RectTransform sliderRectTransform;
|
|||
|
|
|
|||
|
|
public CanvasGroup mainCanvasGroup;
|
|||
|
|
|
|||
|
|
public AIHealtSliderInfo sliderInfo;
|
|||
|
|
|
|||
|
|
public bool sliderOwnerLocated;
|
|||
|
|
|
|||
|
|
public bool sliderCanBeShown = true;
|
|||
|
|
|
|||
|
|
public bool useSliderOffset;
|
|||
|
|
|
|||
|
|
public Vector3 sliderOffset;
|
|||
|
|
|
|||
|
|
public Slider healthSlider;
|
|||
|
|
|
|||
|
|
public bool useCircleHealthSlider;
|
|||
|
|
public Image circleHealthSlider;
|
|||
|
|
|
|||
|
|
public Slider shieldSlider;
|
|||
|
|
|
|||
|
|
public bool iconCurrentlyEnabled;
|
|||
|
|
|
|||
|
|
public int ID;
|
|||
|
|
|
|||
|
|
public bool useHealthSlideInfoOnScreen;
|
|||
|
|
|
|||
|
|
public float healthAmount;
|
|||
|
|
public float maxHealthAmount;
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
public GameObject sliderPrefab;
|
|||
|
|
|
|||
|
|
public float shieldAmount;
|
|||
|
|
|
|||
|
|
public Color textColor;
|
|||
|
|
|
|||
|
|
public Color sliderColor;
|
|||
|
|
|
|||
|
|
public bool healthBarSliderActiveOnStart;
|
|||
|
|
}
|