Exemplo n.º 1
0
    public override void OnInspectorGUI()
    {
        AskQuestionType3 askQuestion = (AskQuestionType3)target;

        if (GUILayout.Button("Demander une Question"))
        {
            askQuestion.Ask_Question();
        }

        base.OnInspectorGUI();
    }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        GameData            = GameObject.Find("Game Data");
        DataScript          = GameData.GetComponent <GameData>();
        isAnsweringQuestion = false;
        askQuestionType1    = gameObject.GetComponent <AskQuestionType1>();
        askQuestionType2    = gameObject.GetComponent <AskQuestionType2>();
        askQuestionType3    = gameObject.GetComponent <AskQuestionType3>();
        askQuestionType4    = gameObject.GetComponent <AskQuestionType4>();
        askQuestionType5    = gameObject.GetComponent <AskQuestionType5>();
        TexteScore.text     = "Score: 0";
        DisableMessageText();

        QuestionCanvas.enabled = false;
        NbQuestion             = 1;
        TexteScore.enabled     = true;
    }
Exemplo n.º 3
0
 private void Start()
 {
     askQuestionType1 = gameObject.GetComponent <AskQuestionType1>();
     askQuestionType2 = gameObject.GetComponent <AskQuestionType2>();
     askQuestionType3 = gameObject.GetComponent <AskQuestionType3>();
 }