Question by
legomih · Mar 10, 2016 at 01:41 AM ·
instantiateparticlesnullreferenceexceptionexception
NullReferenceException
Bom e o seguinte eu fui colocar o sitema de particulas na bala da minha arma mas dai deu erro de instantiate no script do player me ajudem por favor
using UnityEngine; using System.Collections;
public class PistolBehaviour : BaseWeapons {
// Use this for initialization
void Start () {
base.Start ();
}
// Update is called once per frame
void Update () {
base.Update ();
}
protected override void OnFire ()
{
**Instantiate (bullet.gameObject, positionSpawnProjectil.position, transform.rotation);**
}
protected override void OnReload ()
{
}
}
Comment