quantum-space-buddies/QSB/EyeOfTheUniverse/ForestOfGalaxies/Messages/EyeCloneSeenMessage.cs

20 lines
469 B
C#
Raw Normal View History

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
}
}