EVERYTHING
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
using UnityEngine;
|
||||
|
||||
[DisallowMultipleComponent]
|
||||
public sealed class MeBehavior : NodeBehavior
|
||||
{
|
||||
public override void OnGraphUpdate()
|
||||
{
|
||||
int num = ResolveLocalPlayerId();
|
||||
SetLocalOutputValueIfChanged("Player", (num > 0) ? BSValue.FromPlayer(num) : BSValue.None);
|
||||
}
|
||||
|
||||
private static int ResolveLocalPlayerId()
|
||||
{
|
||||
return NodePlayerUtility.ResolveLocalPlayerId();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user