Question by
jessy_de_wolfe · Nov 20, 2019 at 01:07 AM ·
errortransformtransform.rotationtranform.position
error CS1061: does not contain a definition for `positon' and no extension method `positon' of type `UnityEngine.Transform
It says that there is no defenition of position and rotation... What should I do? I'm new to this and it really frustrates me... Here is my script
public class EnemyShots : MonoBehaviour {
public GameObject Shots;
public Transform BulletSpawn;
public float fireRate;
private float nextFire;
void Update ()
{
if (Time.time > nextFire)
{
nextFire = Time.time + fireRate;
Instantiate(Shots, BulletSpawn.positon,
BulletSpawn.rotation);
}
}
}
Full error message: Assets/EnemyShots.cs(18,44): error CS1061: Type UnityEngine.Transform' does not contain a definition for
positon' and no extension method positon' of type
UnityEngine.Transform' could be found. Are you missing an assembly reference?
Comment