public bool IsDepth() { return(data.GetLife() <= 0); }
private void Update() { bar.localScale = new Vector3(1.0f * Mathf.Max(0, (data.GetLife() / data.initialLife)), 1, 1); }