Keep having an issue, with converting this GUI to display in INT rather then in a float format… and it looks ugly at the minute…
As per - help would be appreciated!
using UnityEngine;
using System.Collections;
public class PlayerAdrenaline : MonoBehaviour {
public int MaxAdrenaline = 100;
public int CurrentAdrenaline = 0;
public float AdrenalineBarLength;
public float TimeSlowFactor = 0.2f;
public float TimeSlowDuration = 1f;
public int CountDown = 0f;
// Use this for initialization
void Start ()
{
AdrenalineBarLength = Screen.width / 2;
}
// Update is called once per frame
void Update ()
{
CountDown += Time.deltaTime*4;
Ive tried this guys; i’ve editted my code above; the problem i’m having is is cannot implicity convert type float to int for my Countdown to Time.delta time. section…