Object parenting; Ship module prototype; Use 64 bit
This commit is contained in:
parent
3f97e18615
commit
8335714acc
30 changed files with 436 additions and 62 deletions
12
scripts/GameManager.cs
Normal file
12
scripts/GameManager.cs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
using Godot;
|
||||
|
||||
public partial class GameManager : Node
|
||||
{
|
||||
public override void _Ready()
|
||||
{
|
||||
PackedScene shipPrefab = ResourceLoader.Load<PackedScene>("res://prefabs/vessel.tscn");
|
||||
Node3D shipInstance = shipPrefab.Instantiate<Node3D>();
|
||||
|
||||
GetTree().CurrentScene.CallDeferred("add_child", shipInstance);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue