Partiially working Timeslot-change and Heat Reciever on Targets
This commit is contained in:
@@ -61,7 +61,7 @@ namespace GhostSystem
|
||||
supabaseReady = true;
|
||||
}
|
||||
|
||||
private void HandleSceneIdReady(string id, List<GameObject> doors)
|
||||
private void HandleSceneIdReady(string id, List<GameObject> doors, List<RecieveHeat> targets)
|
||||
{
|
||||
SceneId = id;
|
||||
sceneIdReady = true;
|
||||
|
||||
@@ -50,6 +50,7 @@ namespace GhostSystem
|
||||
private bool sceneIdReady = false;
|
||||
private string loadedSceneId;
|
||||
private int doorCount;
|
||||
private List<RecieveHeat> heatTargets;
|
||||
|
||||
private DateTime latestLoadedTimestamp;
|
||||
|
||||
@@ -78,7 +79,7 @@ namespace GhostSystem
|
||||
TryInitializeReplay();
|
||||
}
|
||||
|
||||
private void HandleSceneIdReady(string id, List<GameObject> doors)
|
||||
private void HandleSceneIdReady(string id, List<GameObject> doors, List<RecieveHeat> targets)
|
||||
{
|
||||
sceneIdReady = true;
|
||||
loadedSceneId = id;
|
||||
@@ -90,6 +91,7 @@ namespace GhostSystem
|
||||
TrackedObjects.Add(trackedObjectBinding);
|
||||
doorCount++;
|
||||
}
|
||||
heatTargets = targets;
|
||||
TryInitializeReplay();
|
||||
}
|
||||
|
||||
@@ -243,7 +245,13 @@ namespace GhostSystem
|
||||
if (playbackTime > totalDuration)
|
||||
{
|
||||
if (Loop)
|
||||
{
|
||||
playbackTime = 0f;
|
||||
foreach (RecieveHeat target in heatTargets)
|
||||
{
|
||||
target.SetHeat(0);
|
||||
}
|
||||
}
|
||||
else
|
||||
isPlaying = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user