2021-12-31 04:45:46 +00:00
|
|
|
|
using QSB.Messaging;
|
|
|
|
|
using QSB.WorldSync;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
2022-03-03 03:46:33 +00:00
|
|
|
|
namespace QSB.EyeOfTheUniverse.ForestOfGalaxies.Messages;
|
|
|
|
|
|
2023-07-28 18:30:57 +00:00
|
|
|
|
public class EyeCloneSeenMessage : QSBMessage
|
2021-12-31 04:45:46 +00:00
|
|
|
|
{
|
|
|
|
|
|
2022-03-03 03:46:33 +00:00
|
|
|
|
public override bool ShouldReceive => QSBWorldSync.AllObjectsReady;
|
2021-12-31 04:45:46 +00:00
|
|
|
|
|
2022-03-03 03:46:33 +00:00
|
|
|
|
public override void OnReceiveRemote()
|
|
|
|
|
{
|
2022-05-03 07:48:24 +00:00
|
|
|
|
var controller = QSBWorldSync.GetUnityObject<PlayerCloneController>();
|
2021-12-31 04:45:46 +00:00
|
|
|
|
|
2022-03-03 03:46:33 +00:00
|
|
|
|
controller._warpFlickerActivated = true;
|
|
|
|
|
controller._warpTime = Time.time + 0.5f;
|
2021-12-31 04:45:46 +00:00
|
|
|
|
}
|
2022-02-25 06:04:54 +00:00
|
|
|
|
}
|