Quantcast
Channel: Photon Unity Networking (PUN) — Photon Engine
Viewing all articles
Browse latest Browse all 8947

Instantiate error:

$
0
0
using UnityEngine;
using System.Collections;

public class Spawn : MonoBehaviour {


public GameObject Item;
private float Timer;

void Awake (){
Timer = Time.time + 10;
}

void Update (){
if (Timer < Time.time) {
PhotonNetwork.Instantiate(Item, transform.position, transform.rotation);
Timer = Time.time + 10;
}
}
}

??

I need to use variable GameObject.

error:


No overload for method "Instantiate" takes '3' arguments

Viewing all articles
Browse latest Browse all 8947

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>