This commit is contained in:
Rendo 2025-11-26 23:24:56 +05:00
commit 6d34205ba2
7 changed files with 31 additions and 2 deletions

View file

@ -0,0 +1,10 @@
extends Node
@export var player: Player
const ATTACK_LAYER: int = 0b10000
const DEFENCE_LAYER: int = 0b100000
func _ready() -> void:
get_parent().collision_mask |= (ATTACK_LAYER if player.team == Session.TEAMS.DEFENCE else DEFENCE_LAYER)