- Home /
Question by
Calum-McManus · Mar 01, 2017 at 02:24 AM ·
collisionnetworking
HandleTransform no gameObject
When ever I hit an enemy this error happens and nothing else.
private void OnCollisionEnter(Collision other)
{
if(other.collider.tag == "Projectile")
{
Debug.Log("Hit");
ManagerContainer mIn = ManagerContainer.Instance;
GroupManager.Group ownerGroup = other.collider.GetComponent<Projectile>().OwnerGroup;
GroupManager.Group playerGroup = GetComponent<Player>().PlayerGroup;
if (ownerGroup == playerGroup)
return;
if (isLocalPlayer) /
CmdHitByProj();
}
}
public void HitByProjectile()
{
CmdHitByProj();
}
[Command]
void CmdHitByProj()
{
RelayHitByProj();
}
[Server]
void RelayHitByProj()
{
RpcRelayHitByProj();
Respawn();
}
[ClientRpc]
void RpcRelayHitByProj()
{
StartCoroutine(Respawn());
}
Really no idea what is going on? :s
Comment