Support => TNet 3 Support => Topic started by: Voxel on June 29, 2013, 03:31:33 PM
Title: RFC Questions
Post by: Voxel on June 29, 2013, 03:31:33 PM
Hi,
I have two questions about RFC:
Is the TNet RFC the equivalent of the built in Unity networking RPC? Sorry if this is a stupid question, but I recently went through Unity tutorials for the in-built Unity Networking, so I am a little bit confused.
In the 'Making a game form scratch' tutorial you mention that for UnityScript users should use [Tnet.RFC] however in a previous post you suggest @RFC. Which one should I be using?
Thanks!
Title: Re: RFC Questions
Post by: ArenMook on June 29, 2013, 04:12:31 PM
1. Yes. 2. @RFC is JavaScript syntax. [RFC] is C# syntax.
Title: Re: RFC Questions
Post by: Voxel on June 29, 2013, 04:54:35 PM
Perfect! Thank you!
Title: Re: RFC Questions
Post by: gg67 on January 07, 2014, 03:08:08 AM
When using ints to identify RFC instead of strings, are those ints local to the script or global? For instance, if I have an [RFC(1)] in script1 and an [RFC(1)] in script2 and I call RFC1 in script1, for example