alotta upgrade stuff but no upgrades
This commit is contained in:
parent
b9fb490dce
commit
3b60583c76
35 changed files with 2937 additions and 61 deletions
|
|
@ -28,6 +28,7 @@ public class Laser : PlayerAbility
|
|||
{
|
||||
canCooldown = false;
|
||||
currentDuration = duration;
|
||||
currentCooldown = cooldown;
|
||||
currentDebounce = damageDebounceTime;
|
||||
beamObjectInstance.gameObject.SetActive(true);
|
||||
transform.Lookat2D(thisPlayer.mouseWorldPos);
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ public class NondirectionalLaser : Laser
|
|||
{
|
||||
canCooldown = false;
|
||||
currentDuration = duration;
|
||||
currentCooldown = cooldown;
|
||||
currentDebounce = damageDebounceTime;
|
||||
beamRoot.gameObject.SetActive(true);
|
||||
}
|
||||
|
|
@ -40,6 +41,7 @@ public class NondirectionalLaser : Laser
|
|||
}
|
||||
currentDebounce = damageDebounceTime;
|
||||
}
|
||||
currentDuration -= Time.deltaTime;
|
||||
}
|
||||
if (currentDuration <= 0)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ public class PlayerAbility : MonoBehaviour
|
|||
[Header("Cooldown")]
|
||||
public bool canCooldown = true;
|
||||
public float cooldown;
|
||||
protected float currentCooldown;
|
||||
public float currentCooldown;
|
||||
[Header("Stats")]
|
||||
public float power;
|
||||
public float projectileCount;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue