Players shouldn't be allowed to shoot during buy phase
This commit is contained in:
parent
ca2f507024
commit
e8af70b198
1 changed files with 8 additions and 0 deletions
|
|
@ -184,17 +184,25 @@ func _physics_process(delta: float) -> void:
|
|||
current_state.physics_update(delta)
|
||||
|
||||
func use_begin() -> void:
|
||||
if Session.round_state == Session.ROUND_STATES.BUY:
|
||||
return
|
||||
if current_state != null:
|
||||
current_state.use_begin()
|
||||
|
||||
func use_end() -> void:
|
||||
if Session.round_state == Session.ROUND_STATES.BUY:
|
||||
return
|
||||
if current_state != null:
|
||||
current_state.use_end()
|
||||
|
||||
func alternate_state() -> void:
|
||||
if Session.round_state == Session.ROUND_STATES.BUY:
|
||||
return
|
||||
if current_state != null:
|
||||
current_state.alternate_state()
|
||||
|
||||
func switch_mode() -> void:
|
||||
if Session.round_state == Session.ROUND_STATES.BUY:
|
||||
return
|
||||
if current_state != null:
|
||||
current_state.switch_mode()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue