optimizations

This commit is contained in:
Marco 2025-02-07 14:58:59 +01:00
commit eb1d74ee63
7 changed files with 33 additions and 6 deletions

View file

@ -2,6 +2,7 @@ using Godot;
using System;
using System.Diagnostics;
using System.Linq;
using Cirno.Scripts;
using Cirno.Scripts.Resources;
using Godot.Collections;
@ -13,7 +14,7 @@ public partial class Interactable : Area2D
public override void _Ready()
{
_inventoryManager = GetNode<InventoryManager>("/root/GameScene/InventoryManager");
_inventoryManager = this.GetInventoryManager();
}
protected bool MeetsRequirements()

View file

@ -12,6 +12,7 @@ size = Vector2(14, 28)
size = Vector2(12, 24)
[node name="Red Box" type="Area2D" groups=["Destroyable"]]
y_sort_enabled = true
position = Vector2(0, -9)
collision_layer = 64
collision_mask = 10

View file

@ -143,6 +143,7 @@ radius = 17.2627
radius = 1.0
[node name="Player" type="CharacterBody2D" node_paths=PackedStringArray("Muzzle", "EquippedWeapon") groups=["Destroyable", "player"]]
y_sort_enabled = true
collision_layer = 2
collision_mask = 99
script = ExtResource("1_m27vu")

File diff suppressed because one or more lines are too long