public class EnumAsRFCParamTest : TNBehaviour
{
public enum AbilityLocation : int
{
Default = 0,
Hand = 1
};
void Update()
{
if (Input.GetKeyDown(KeyCode.E))
{
Debug.LogError("Sending initial RFC");
AbilityLocation test = AbilityLocation.Hand;
tno.Send(37, Target.Host, test);
}
}
[RFC(38)]
void RecvFinalEnumParam(AbilityLocation test)
{
Debug.LogError("Client got " + test);
}
[RFC(37)]
void RecvInitialEnumParam(AbilityLocation test)
{
Debug.LogError("Host got " + test);
tno.Send(38, Target.All, test);
}
}