You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
using System.Collections ;
using System.Collections.Generic ;
using UnityEngine ;
using UnityEngine.UI ;
public class DuoXuan : MonoBehaviour
{
// Start is called before the first frame update
public int [ ] 选 项 ; //操作题0代表正确, 1代表错误,多选题数字代表选项
//public List<int> 临时选项;
public GameObject next ;
public Button btn_ 提 交 ;
public bool a ;
void Awake ( )
{
for ( int i = 0 ; i < 选 项 . Length ; i + + )
{
选 项 [ i ] = - 1 ;
}
}
void Start ( )
{
btn_ 提 交 . onClick . RemoveAllListeners ( ) ;
btn_ 提 交 . onClick . AddListener ( ( ) = > 确 认 提 交 ( ) ) ;
}
public void 确 认 提 交 ( )
{
GameRoot . SubmitMoreChoiceAnswer ( Windows . Instance . 关 卡 , Windows . Instance . 题 号 , 选 项 , a ) ;
// Windows.Instance.提交中.SetActive(true);
Windows . Instance . 题 号 + + ;
if ( next = = null )
{
gameObject . SetActive ( true ) ;
GameRoot . SubmitPassState ( Windows . Instance . 关 卡 , true ) ;
remake . a = 0 ;
remakeTwo . a = 0 ;
GameRoot . ReturnMenu ( ) ;
/*AddListener(btn_已作答提交, GameRoot.ReturnMenu);
提交完毕.gameObject.SetActive(true);*/
}
}
}