Hey,
Ran into a weird problem while testing out my shooting function in 2D game. Apparently only the servers host has a working raycast + only the host is able to deal damage (because of the working raycast). Meanwhile the clients raycast is all bonkers. Any idea what is causing this?
This is the script handling the shooting.
Client raycast not working
Ran into a weird problem while testing out my shooting function in 2D game. Apparently only the servers host has a working raycast + only the host is able to deal damage (because of the working raycast). Meanwhile the clients raycast is all bonkers. Any idea what is causing this?
This is the script handling the shooting.
Code (CSharp):
- using UnityEngine;
- using System.Collections;
- using UnityEngine.Networking;
- public class Shoot : NetworkBehaviour {
- public int dmg = 1;...