mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 18:14:37 +08:00
32 lines
557 B
C#
32 lines
557 B
C#
![]() |
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using DCFApixels;
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
namespace DCFApixels.DragonECS
|
|||
|
{
|
|||
|
public class Startup : MonoBehaviour
|
|||
|
{
|
|||
|
|
|||
|
private EcsSession _ecsSession;
|
|||
|
|
|||
|
private void Start()
|
|||
|
{
|
|||
|
_ecsSession
|
|||
|
.AddWorld("")
|
|||
|
.Add(new TestSystem())
|
|||
|
.Init();
|
|||
|
}
|
|||
|
|
|||
|
private void Update()
|
|||
|
{
|
|||
|
_ecsSession.Run();
|
|||
|
}
|
|||
|
|
|||
|
private void OnDestroy()
|
|||
|
{
|
|||
|
_ecsSession.Destroy();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|