Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

PUN RPC and Javascript

$
0
0
I am very confused to why my code wont work, I have googled for hours and have been unable to find anything. I am wanting a message to be sent to a box which gets destroyed for all players on the network.

GUN SCRIPT
Code (JavaScript):
  1.  
  2. function Update(){
  3.     if(Input.GetMouseButton(0)){
  4.         var hit : RaycastHit;
  5.         var fwd : Vector3 = transform.TransformDirection(Vector3.back);
  6.         Debug.DrawRay(transform.position, fwd, Color.green);...
PUN RPC and Javascript

Viewing all articles
Browse latest Browse all 16796

Trending Articles