Closed IoannisKaragiannis closed 6 years ago
If the property is in the form of data, sure. Example: If it's the first player, give him x position. If it's the second, give him another. But if you are talking about a property on something like a MonoBehaviour on the actual game object? No. The object is not yet instantiated. The object gets instantiated when you invoke the callback.
Just use the delegate for ConnectionApproval.
Ok I see. Then I cannot really do what I want. Thanks for your response. Have a nice summer!
Hi,
Description
I want to spawn two clients in different positions. Client-A has a particular property (e.g.: a boolean that is true), while Client-B doesn't. Is there an easy way to modify the HandleApproval() method to take into account this extra information and spawn the clients properly?
Code
Ideally what I want to achieve is something like the following:
Thanks
Your Environment