mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2024-12-29 03:28:26 +00:00
20 lines
469 B
C#
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;
|
|
}
|
|
} |