This commit is contained in:
CortexCore
2024-04-19 21:43:30 +08:00
parent e12a6e5a46
commit 3cc6491973
46 changed files with 6792 additions and 23887 deletions

View File

@@ -2,6 +2,7 @@ using System;
using System.Collections;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using BITKit;
using BITKit.Entities;
using BITKit.SubSystems.Quest;
@@ -67,12 +68,11 @@ namespace BITFALL.GameMode
{
_quadtree.Remove(new MyInfo{Info = (InfoNpcStart) obj});
}
private async void OnTick(float obj)
{
try
{
if (_isBusy) return;
if (_isBusy || enabled is false) return;
tickCount++;
_isBusy = true;
var cameraPosition = Camera.main.transform.position;
@@ -186,5 +186,13 @@ namespace BITFALL.GameMode
NodeQuery.RemoveUnregisterListener(typeof(InfoNpcStart), OnNpcInfoUnRegister);
ticker.Remove(OnTick);
}
private void Reset()
{
foreach (var x in actives.Values.ToArray())
{
x.Health.HealthPoint = -1;
}
}
}
}