mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-29 09:32:38 +00:00
fix TheCollector being used :(
This commit is contained in:
parent
a0c311613f
commit
ba9048ada8
@ -1,5 +1,6 @@
|
||||
using Cysharp.Threading.Tasks;
|
||||
using QSB.EchoesOfTheEye.Ghosts.WorldObjects;
|
||||
using QSB.Utility;
|
||||
using QSB.WorldSync;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
@ -23,7 +24,7 @@ internal class GhostManager : WorldObjectManager
|
||||
{
|
||||
QSBWorldSync.Init<QSBGhostEffects, GhostEffects>();
|
||||
QSBWorldSync.Init<QSBGhostSensors, GhostSensors>();
|
||||
QSBWorldSync.Init<QSBGhostBrain, GhostBrain>();
|
||||
QSBWorldSync.Init<QSBGhostBrain, GhostBrain>(QSBWorldSync.GetUnityObjects<GhostBrain>().Where(x => x.gameObject.activeSelf).SortDeterministic());
|
||||
|
||||
_hotelDirector = QSBWorldSync.GetUnityObjects<GhostHotelDirector>().First();
|
||||
_partyPathDirector = QSBWorldSync.GetUnityObjects<GhostPartyPathDirector>().First();
|
||||
|
@ -133,7 +133,10 @@ public class QSBGhostBrain : WorldObject<GhostBrain>
|
||||
AttachedObject._controller = AttachedObject.GetComponent<GhostController>();
|
||||
AttachedObject._sensors = AttachedObject.GetComponent<GhostSensors>();
|
||||
_data = new();
|
||||
_data.threatAwareness = AttachedObject._data.threatAwareness;
|
||||
if (AttachedObject._data != null)
|
||||
{
|
||||
_data.threatAwareness = AttachedObject._data.threatAwareness;
|
||||
}
|
||||
}
|
||||
|
||||
public void Start()
|
||||
|
Loading…
x
Reference in New Issue
Block a user