Question by
SoftwareSlicer · May 11, 2017 at 05:00 PM ·
error message
Expression denotes a type where a variable, value or method group was expected.
Here is my script:
using System.Collections; using System.Collections.Generic; using UnityEngine;
public class Whatever : MonoBehaviour { public GameObject a;
// Use this for initialization
void Start () {
}
int o = 0;
// Update is called once per frame
void Update () {
if (o <15){
GameObject whatever;
whatever = Instantiate(a, transform.position, transform.rotation) as GameObject;
transform.Translate (Vector2(0,100));
o++;
}
} }
Comment
Your answer
Follow this Question
Related Questions
Error CS0535? 0 Answers
Roll a Ball script error?! 2 Answers
NullReferenceException: Object reference not set to an instance of an object 1 Answer
Scene Won't Load 1 Answer
Socket: bind failed, error 3 Answers