mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-15 23:13:59 +00:00
optimizations
This commit is contained in:
parent
91e063c01b
commit
eb1d74ee63
7 changed files with 33 additions and 6 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
Loading…
Add table
Add a link
Reference in a new issue