1
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user