Remove unused functions

This commit is contained in:
Moe Poi ~ 2023-10-07 00:36:59 +07:00
parent 35f893ef3c
commit 5ca9c28a2e
4 changed files with 2 additions and 15 deletions

0
git Normal file
View file

View file

@ -15,9 +15,6 @@ func _ready():
for placement in placements: for placement in placements:
placement.connect("on_placement", on_game_placement) placement.connect("on_placement", on_game_placement)
$CanvasLayer/TowerMenu.connect("build_tower", on_build_tower) $CanvasLayer/TowerMenu.connect("build_tower", on_build_tower)
func _process(delta):
pass
func on_game_placement(pos, tower_placement_id): func on_game_placement(pos, tower_placement_id):
var tower_id = null var tower_id = null

View file

@ -1,16 +1,9 @@
extends StaticBody2D extends StaticBody2D
signal on_placement(pos: Vector2, tower_placement_id: int) signal on_placement(pos: Vector2, tower_placement_id: int)
# Called when the node enters the scene tree for the first time. func _on_input_event(_viewport, event, _shape_idx):
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
func _on_input_event(viewport, event, shape_idx):
var mouse_click = event as InputEventMouseButton var mouse_click = event as InputEventMouseButton
if mouse_click and mouse_click.button_index == 1 and mouse_click.pressed: if mouse_click and mouse_click.button_index == 1 and mouse_click.pressed:
on_placement.emit(global_position, get_instance_id()) on_placement.emit(global_position, get_instance_id())

View file

@ -15,9 +15,6 @@ var current_disabled_2 = false
func _ready(): func _ready():
hide() hide()
func _process(delta):
pass
func _on_close_pressed(): func _on_close_pressed():
hide() hide()