22 lines
493 B
C#
Raw Normal View History

2021-12-30 20:45:46 -08:00
using QSB.Messaging;
using QSB.WorldSync;
using System.Linq;
using UnityEngine;
namespace QSB.EyeOfTheUniverse.ForestOfGalaxies.Messages
{
2021-12-31 23:59:27 -08:00
internal class EyeCloneSeenMessage : QSBMessage
2021-12-30 20:45:46 -08:00
{
public override bool ShouldReceive => QSBWorldSync.AllObjectsReady;
2021-12-30 20:45:46 -08:00
public override void OnReceiveRemote()
{
var controller = QSBWorldSync.GetUnityObjects<PlayerCloneController>().First();
controller._warpFlickerActivated = true;
controller._warpTime = Time.time + 0.5f;
}
}
}