Author Topic: RFC to different object.  (Read 2048 times)


  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 29
    • View Profile
RFC to different object.
« on: June 11, 2013, 07:13:36 AM »
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.


  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: RFC to different object.
« Reply #1 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(...)