public void ThrowSnipperPorjectile(string playerWhoSpawnedUs, uint netId) { TravelingSpell spell = NetworkManager.Instance.InstantiateThrowObj(1, transform.position, GameObject.FindGameObjectWithTag("PlayerCamera").transform.rotation) as TravelingSpell; spell.playerWhoSpawnedUs = playerWhoSpawnedUs; spell._netId = netId; }
public void ThrowSpell(string playerWhoSpawnedUs, uint netId) { TravelingSpell spell = NetworkManager.Instance.InstantiateThrowObj(0, transform.position, GameObject.FindGameObjectWithTag("PlayerCamera").transform.rotation) as TravelingSpell; Debug.Log("player Who Spoawned us::SpellManager: " + playerWhoSpawnedUs); spell.playerWhoSpawnedUs = playerWhoSpawnedUs; spell._netId = netId; }