EVERYTHING
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
[DisallowMultipleComponent]
|
||||
public sealed class UnfreezePlayerBehavior : NodeBehavior
|
||||
{
|
||||
public override void OnRun(string inputPortName)
|
||||
{
|
||||
if (base.IsAuthoritative && string.Equals(inputPortName, "Unfreeze", StringComparison.Ordinal))
|
||||
{
|
||||
int inputPlayerId = GetInputPlayerId("Player");
|
||||
NodePlayerFreezeRpc.Ensure()?.TryUnfreezePlayer(inputPlayerId);
|
||||
TriggerOutput("Done");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user