Answers for "C# script error CS1002; expected for making question list in unity"

C#
0

C# script error CS1002; expected for making question list in unity

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[CreateAssetMenu]
[System.Serializable]

public class Questions : ScriptableObject
{
    [System.Serializable]
    
    public class QuestionData
    {
        public string queston = string.Empty;
        public bool isTrue = false;
        public bool questioned = false;

    }

    public int currentQuestion = 0;
    public List<QuestionData> questionList;

    public void AddQuestion()
    {
        questionList.Add(new QuestionData())

    }
}
Posted by: Guest on September-15-2021

Code answers related to "C# script error CS1002; expected for making question list in unity"

C# Answers by Framework

Browse Popular Code Answers by Language