2023-07-18 16:42:33 +08:00
|
|
|
using System;
|
2023-06-12 15:51:41 +08:00
|
|
|
using BITKit.Core.Entites;
|
|
|
|
using Godot;
|
|
|
|
|
|
|
|
namespace BITKit;
|
|
|
|
/// <summary>
|
|
|
|
/// 基于Godot.Node3D的IEntityComponent实现
|
|
|
|
/// </summary>
|
2023-07-18 16:42:33 +08:00
|
|
|
public partial class EntityComponent : Node,IEntityComponent
|
2023-06-12 15:51:41 +08:00
|
|
|
{
|
2023-07-18 16:42:33 +08:00
|
|
|
public virtual Type BaseType => GetType();
|
2023-06-12 15:51:41 +08:00
|
|
|
public IEntity Entity { get; set; }
|
|
|
|
public virtual void OnStart(){}
|
|
|
|
public virtual void OnAwake(){}
|
|
|
|
}
|