16 lines
329 B
C#
16 lines
329 B
C#
using Godot;
|
|
|
|
public partial class StarNode : StaticBody3D
|
|
{
|
|
public Star StarData { get; set; }
|
|
|
|
public override void _Ready()
|
|
{
|
|
GlobalPosition = StarData.LocalCoordinates + StarData.SectorOffset;
|
|
}
|
|
|
|
public override void _Process(double delta)
|
|
{
|
|
GlobalPosition = StarData.LocalCoordinates + StarData.SectorOffset;
|
|
}
|
|
}
|