Author Topic: TNObject Id  (Read 3223 times)

Milkman

  • Guest
TNObject Id
« on: February 03, 2013, 04:15:06 PM »
Hi.

I made a prefab with Unity's fps controller and added the tnobject script. The idea is that when the player joins the game, a script will instantiate this prefab with TNManager.Create(...), and this prefab will be the player's avatar.

But there's one detail that I couldn't figure out: how can I have multiple copies of this prefab, one for each player? Can I change TNObject's ID dinamically?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: TNObject Id
« Reply #1 on: February 03, 2013, 05:25:36 PM »
TNManager.Create will automatically assign new IDs. You don't have to worry about it.

Milkman

  • Guest
Re: TNObject Id
« Reply #2 on: February 04, 2013, 06:24:31 PM »
Thanks for the info!