Answer the question
In order to leave comments, you need to log in
Syntaxis error, expected and; expected what to do?
Hello, I was writing a code for a towerplace and these errors appeared in the unit:
Here is the code of the towerplace:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TowerPlace : MonoBehaviour {
public GameObject Tower;
public Vector3 offset;
public GameObject curTower;
public bool empty;
void OnMouseDown()
{
if (empty)
{
curTower GameObject.Instantiate(Tower,transform.position+offset,Quaternion.identity) as GameObject;
empty = false;
}
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question