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

20 lines
480 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;
internal 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()
{
var controller = QSBWorldSync.GetUnityObjects<PlayerCloneController>().First();
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
}
}