mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-10 00:35:54 +00:00
FSM Player movement
This commit is contained in:
parent
7d9db8cfb6
commit
c59a480ffd
10 changed files with 131 additions and 36 deletions
|
|
@ -16,12 +16,19 @@ public partial class PlayerWeaponProvider : Node2D
|
|||
|
||||
public Weapon EquippedWeapon { get; set; }
|
||||
|
||||
//private PlayerMovement _parent;
|
||||
private CharacterBody2D _parent;
|
||||
|
||||
//public Vector2 FacingDirection
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void Init(CharacterBody2D parent)
|
||||
{
|
||||
_parent = parent;
|
||||
|
||||
_inventoryManager = this.GetInventoryManager();
|
||||
|
||||
_inventoryManager.WeaponEquip += this.EquipWeapon;
|
||||
|
|
@ -35,11 +42,6 @@ public partial class PlayerWeaponProvider : Node2D
|
|||
};
|
||||
}
|
||||
|
||||
public void Init(PlayerMovement parent)
|
||||
{
|
||||
//_parent = parent;
|
||||
}
|
||||
|
||||
public void AddWeapon(Weapon weapon)
|
||||
{
|
||||
EquippedWeapons.Add(weapon);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue