Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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();
        }