public void SetIconState(QuickThrowIcon q) { state = q.state; ball.enabled = q.ball.enabled; fill.fillAmount = q.fill.fillAmount; chargeStartTime = q.chargeStartTime; charge = q.charge; }
public void FinishCharge() { state = QuickThrowIconState.Ready; AudioManager.instance.PlaySFX(AudioManager.AudioSFX.Pop); GetComponent <Animator>().SetTrigger("Ready"); ball.enabled = true; fill.fillAmount = 0f; charge = 0; }
public void Reset() { fill.fillAmount = 0f; ball.enabled = false; state = QuickThrowIconState.Empty; }
public void StartCharge() { state = QuickThrowIconState.Charging; chargeStartTime = Time.time; }