Added AbstractProjectile
This commit is contained in:
@@ -32,7 +32,7 @@ func _ready() -> void:
|
||||
_calculate_cool()
|
||||
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
func _physics_process(delta: float) -> void:
|
||||
if _heat > 0:
|
||||
_heat -= _cool_per_sec * delta
|
||||
if _heat < 0:
|
||||
|
||||
@@ -16,7 +16,7 @@ func _ready() -> void:
|
||||
_calculate_delay()
|
||||
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
func _physics_process(delta: float) -> void:
|
||||
if _cooldown > 0:
|
||||
_cooldown -= delta
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ func _ready() -> void:
|
||||
_calculate_reload_time_tenth()
|
||||
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
func _physics_process(delta: float) -> void:
|
||||
if _countdown > 0:
|
||||
_countdown -= delta
|
||||
if _countdown <= 0:
|
||||
|
||||
Reference in New Issue
Block a user