final commit?
This commit is contained in:
parent
0e2a7cc7c3
commit
3f53e2caa8
59 changed files with 3989 additions and 1668 deletions
|
|
@ -45,7 +45,7 @@ public class ReisenShoot : Ability
|
|||
protected override void Update()
|
||||
{
|
||||
base.Update();
|
||||
if (currentMouseHoldTime >= 0)
|
||||
if (currentMouseHoldTime > 0)
|
||||
{
|
||||
currentMouseHoldTime -= Time.deltaTime;
|
||||
if (currentMouseHoldTime <= 0 && Input.GetMouseButton(0) && currentChargeTime <= 0)
|
||||
|
|
@ -55,13 +55,15 @@ public class ReisenShoot : Ability
|
|||
}
|
||||
else if (Input.GetMouseButtonUp(0))
|
||||
{
|
||||
currentMouseHoldTime = 0;
|
||||
isCharging = false;
|
||||
ShootBullet(projectile, power);
|
||||
}
|
||||
}
|
||||
if (isCharging && Input.GetMouseButton(0)) //this code REEKS
|
||||
{
|
||||
currentChargeTime += Time.deltaTime;
|
||||
chargeMeter.localScale = new Vector3(Math.Clamp(currentChargeTime, 0, maxChargeTime)/maxChargeTime, 1f, 1f);
|
||||
chargeMeter.localScale = new Vector3(1f, Math.Clamp(currentChargeTime, 0, maxChargeTime)/maxChargeTime, 1f);
|
||||
}
|
||||
else if (currentChargeTime > 0 && isCharging && Input.GetMouseButtonUp(0))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue