public override void _Ready() { _node2d = GetNode <Node2D>("Node2D"); _overheatBar = GetNode <OverheatBar>("Node2D/OverheatBar"); Input.SetMouseMode(Input.MouseMode.Hidden); GameEventDispatcher.Instance.Connect(nameof(GameEventDispatcher.PlayerWeaponSwapped), this, nameof(OnPlayerWeaponSwapped)); }
public override void _Ready() { _overheatBar = GetNode <OverheatBar>("OverheatBar"); _textureRect = GetNode <TextureRect>("TextureRect"); _hotLabel = GetNode <Label>("TextureRect/HotLabel"); _swapAnimationPlayer = GetNode <AnimationPlayer>("SwapAnimationPlayer"); _hotAnimationPlayer = GetNode <AnimationPlayer>("HotAnimationPlayer"); _hotLabel.Hide(); UpdatePivotOffset(); }