using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using Assets;
public class NewBehaviourScript: MonoBehaviour
{
public List Questions;
public bool AddToList;
// Use this for initialization
void Start()
{
Questions.Add(0);
int q = Random.Range(1,3);
Debug.Log (q);
foreach (var a in Questions)
{
Debug.Log(a);
if (a == q)
{
AddToList = false;
}
else
{
AddToList = true;
}
}
if (AddToList == true)
{
Questions.Add(q);
GameObject.Find("q");
}
// Questions.Add (quesnum);
}
// Update is called once per frame
void Update()
{
}
public void LoadQuestion()
{
}
}
↧