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