Knockback tag implementation
This commit is contained in:
@@ -34,7 +34,7 @@ public partial class ThrowableItem : Node3D, IInventoryItem
|
||||
|
||||
public void Throw(ThrowableItemStats throwableItemStats)
|
||||
{
|
||||
var throwableScene = GD.Load<PackedScene>("res://src/items/throwable/ThrownItem.tscn");
|
||||
var throwableScene = GD.Load<PackedScene>("res://src/items/thrown/ThrownGeometricDice.tscn");
|
||||
var throwable = throwableScene.Instantiate<ThrownItem>();
|
||||
Game.AddChild(throwable);
|
||||
throwable.Throw(throwableItemStats);
|
||||
|
||||
Reference in New Issue
Block a user