OnTriggerEnter event
Options
Hello.
I have a simple multiplayer project. A player joined a room can control a cube, moveing and rotating it.
I want to load another scene when two players strikes each other.
I added OnTriggerEnter method in CubeController script, but nothing happend when 2 cubes get in contact (cube prefab has Box Collider with Is Trigger enabled).
How can i chekc OnTriggerEnter event? I guess it should be checked in sync script with PhotonView component right? Should i send and receive to PhotonStream something special?
And how should i bring both players to a new scene? LoadLevel + Join a specific room?
I have a simple multiplayer project. A player joined a room can control a cube, moveing and rotating it.
I want to load another scene when two players strikes each other.
I added OnTriggerEnter method in CubeController script, but nothing happend when 2 cubes get in contact (cube prefab has Box Collider with Is Trigger enabled).
How can i chekc OnTriggerEnter event? I guess it should be checked in sync script with PhotonView component right? Should i send and receive to PhotonStream something special?
And how should i bring both players to a new scene? LoadLevel + Join a specific room?
0
Comments
-
By chance I found your post in the Unity Forum first. When you cross post, please add a link!
http://forum.unity3d.com/threads/pun-on ... nt.261141/0 -
Thanks for your reply.
I'll pay atention to your note about crossposting.
I answered in Unity forum with some questions. Answer pls, if it possible.
Thanks.0