Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

What I did wrong? Unexpected symbol `,', expecting `)'

$
0
0
using UnityEngine; using System.Collections; public class Shoter : MonoBehaviour { GameObject bullet; void Start () { } void Update () { if (Input.GetButtonDown("Fier1")) { GameObject newBullet = Instante(bullet, Transform.position + (transform,forward*1), transform.rotation as GameObject); newBullet.rigidbody.AddForce(Transform,forward * 10000); } } }

Viewing all articles
Browse latest Browse all 7934

Trending Articles



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