예제 #1
0
 public override void OnPlayerJoined(VRCPlayerApi player)
 {
     if (Networking.IsMaster)
     {
         GameObject o = _objectPool.TryToSpawn();
         Networking.SetOwner(player, o);
     }
 }
예제 #2
0
    public void Action()
    {
        if (!objectPool || !RandomJudgement())
        {
            return;
        }

        Networking.SetOwner(Networking.LocalPlayer, objectPool.gameObject);

        GameObject obj = objectPool.TryToSpawn();
    }
예제 #3
0
 public void GetObject()
 {
     Networking.SetOwner(Networking.LocalPlayer, gameObject);
     pool.TryToSpawn();
 }