コード例 #1
0
    void Start()
    {
        clicks    = 0;
        acertos   = 0;
        erros     = 0;
        numeros   = new int[5];
        tema      = GetComponent <Palavras>();
        sceneUI   = GetComponent <SceneUI>();
        sorteio   = GetComponent <Randomize>();
        contCard  = 0;
        listCards = sorteio.SorteioSemRepeticaoVetor(0, 25, 12);       //AUMENTAR PARA 47

        //numeros = listCards.ToArray ();
        int i = 0;

        for (int l = 0; l < 2; l++)
        {
            foreach (int numero in listCards)
            {
                if (l == 0)
                {
                    listaPalavras [i] = tema.paronimos1 [numero];
                }
                else
                {
                    listaPalavras [i] = tema.paronimos2 [numero];
                }

                //Debug.Log (listCards [i].ToString ());
                Debug.Log(listaPalavras [i].ToString());
                i += 1;
            }
        }
    }
コード例 #2
0
 protected virtual void TogglePause()
 {
     _paused                  = !_paused;
     Time.timeScale           = _paused ? 0 : 1;
     PlayerController.enabled = !_paused;
     Cursor.lockState         = _paused ? CursorLockMode.None : CursorLockMode.Locked;
     Cursor.visible           = _paused;
     SceneUI.SetModuleVisibility <GameSceneMainMenuUIModule>(_paused);
 }
コード例 #3
0
    public void Awake()
    {
        instance = this;

        //questionManager = new QuestionManager();
        sceneUI = gameObject.GetComponent <SceneUI>();

        LifeTracker();
        ShieldTracker();

        score = scoreGO.GetComponent <TextMeshProUGUI>();
    }
コード例 #4
0
    void Start()
    {
        scoreScript   = gameObject.GetComponent <ScoreAndLivesManager>();
        randomButtons = gameObject.GetComponent <RandomizeButtons>();

        sceneUI = gameObject.GetComponent <SceneUI>();

        foreach (Question question in totalQuestions)
        {
            unAnsweredQuestions.Add(question);
        }
        LoadQuestion();
    }
コード例 #5
0
    void Awake()
    {
        pl = PreLoader.instance;

        instance = this;

        questionText = questionTextGO.GetComponent <TextMeshProUGUI>();

        answerAText = answerAGO.GetComponent <TextMeshProUGUI>();
        answerBText = answerBGO.GetComponent <TextMeshProUGUI>();
        answerCText = answerCGO.GetComponent <TextMeshProUGUI>();
        answerDText = answerDGO.GetComponent <TextMeshProUGUI>();

        hhQuantityText    = hhQuantityGO.GetComponent <TextMeshProUGUI>();
        ssQuantityText    = ssQuantityGO.GetComponent <TextMeshProUGUI>();
        llQuantityText    = llQuantityGO.GetComponent <TextMeshProUGUI>();
        sskipQuantityText = sskipQuantityGO.GetComponent <TextMeshProUGUI>();

        egScoreText  = egScoreGO.GetComponent <TextMeshProUGUI>();
        egTokensText = egTokensGO.GetComponent <TextMeshProUGUI>();
        egGemsText   = egGemsGO.GetComponent <TextMeshProUGUI>();
    }
コード例 #6
0
 void Awake()
 {
     Instance    = this;
     preventSave = PlayerPrefs.GetInt("Unsaved Changes", 0) == 0;
 }
コード例 #7
0
 public void Load(SceneUI sceneUI)
 {
     sceneUI.LineBG       = Color.WhiteSmoke;
     sceneUI.LineBGActive = Color.AntiqueWhite;
     sceneUI.LineColor    = Color.Black;
 }