20 lines
402 B
C#
20 lines
402 B
C#
using Godot;
|
|
using System;
|
|
|
|
public class WorldInfoComponent : Component
|
|
{
|
|
[Export] public NodePath World;
|
|
|
|
public TileWorld TileWorld;
|
|
|
|
// Called when the node enters the scene tree for the first time.
|
|
public override void _Ready()
|
|
{
|
|
TileWorld = GetNode<TileWorld>(World);
|
|
}
|
|
|
|
public void SetWorld(TileWorld tileWorld)
|
|
{
|
|
TileWorld = tileWorld;
|
|
}
|
|
} |