
and then
You can’t concatenate a number with a string on initializing the variables outside of methods.
You’ll need to do that in a method such as start.
using UnityEngine;
using System.Collections;
using System;
public class Script : MonoBehaviour {
public string Quiz = "Quiz N#: ";
public int number = 1;
void Start(){
Quiz = Quiz + number;
print(Quiz);
}
void update()
{
}
}
thanks mate. ![]()