How to get "gameObject" from Game.Avatar in RunBehavior?
Hi there,
I'm working with the MMO demo for Photon Server on-Premise and I need to get to the ItemBehaviour component in the Player. But there is no "gameObject" property on the Game.Avatar property.
How do I access the Player Avatar gameObject that "IsMine" ?
Thank you!
Caesar
I'm working with the MMO demo for Photon Server on-Premise and I need to get to the ItemBehaviour component in the Player. But there is no "gameObject" property on the Game.Avatar property.
How do I access the Player Avatar gameObject that "IsMine" ?
Thank you!
Caesar
0
Comments
-
Hi,
You can find game object by name (https://docs.unity3d.com/ScriptReference/GameObject.Find.html) or store reference to ItemBehaviour during initialization in RunBehaviour.CreateActor() or ItemBehaviour.Initialize().1 -
Yep perfect...thank you!0