public override void OnPlayerJoined(VRCPlayerApi player) { if (Networking.IsMaster) { GameObject o = _objectPool.TryToSpawn(); Networking.SetOwner(player, o); } }
public void Action() { if (!objectPool || !RandomJudgement()) { return; } Networking.SetOwner(Networking.LocalPlayer, objectPool.gameObject); GameObject obj = objectPool.TryToSpawn(); }
public void GetObject() { Networking.SetOwner(Networking.LocalPlayer, gameObject); pool.TryToSpawn(); }