Tasharen Entertainment Forum

Support => TNet 3 Support => Topic started by: Scobbo on June 11, 2013, 07:13:36 AM

Title: RFC to different object.
Post by: Scobbo on June 11, 2013, 07:13:36 AM
Hi,
If I have an RFC function, can I call it from a different object like what SendMessage() does? Or do I need to set up a function on the same object to use SendMessage() when it receives the RFC (or send message then RFC). I have a button that Sends the input of text boxes (NGUI if that makes a difference) to the world controller that will then look for any users by that username and verify password and all that jazz that will then either make a new player and items or give you control of your old caracter.
Title: Re: RFC to different object.
Post by: ArenMook on June 11, 2013, 12:47:18 PM
You can call an RFC on another object, as long as it has a TNObject component, by simply doing a targetObject.GetComponent<TNObject>().Send(...)