quantum-space-buddies/QSB/EyeOfTheUniverse/ForestOfGalaxies/Messages/EyeCloneSeenMessage.cs
2023-07-28 19:30:57 +01:00

20 lines
469 B
C#

using QSB.Messaging;
using QSB.WorldSync;
using System.Linq;
using UnityEngine;
namespace QSB.EyeOfTheUniverse.ForestOfGalaxies.Messages;
public class EyeCloneSeenMessage : QSBMessage
{
public override bool ShouldReceive => QSBWorldSync.AllObjectsReady;
public override void OnReceiveRemote()
{
var controller = QSBWorldSync.GetUnityObject<PlayerCloneController>();
controller._warpFlickerActivated = true;
controller._warpTime = Time.time + 0.5f;
}
}