Пример #1
0
    void GenerateIndividualOrder()
    {
        OrderProperties individualOrder = orderGenerator.GenerateIndividualOrder(playerName);

        if ((int)PhotonNetwork.LocalPlayer.CustomProperties["Lifes"] > 0)
        {
            orderText.text = individualOrder.text;
        }

        float waitTime;

        if (individualOrder.type == 0)
        {
            waitTime = markerTime;
        }
        else
        {
            waitTime = voiceTime;
        }

        //Set time bar
        StartCoroutine(StartOrderCountdown(waitTime));

        if (individualOrder.type == 0)
        {
            markersController.MovementOrder(individualOrder.color, individualOrder.isSimon, individualOrder.players, individualOrder.direction, waitTime);
        }
        else
        {
            voiceController.CheckVoice(individualOrder.word, individualOrder.isSimon, individualOrder.players, waitTime);
        }
    }
    void GenerateIndividualOrder()
    {
        OrderProperties individualOrder = orderGenerator.GenerateIndividualOrder(playerName);

        orderText.text = individualOrder.text;

        float waitTime;

        if (individualOrder.type == 0)
        {
            waitTime = markerTime;
        }
        else
        {
            waitTime = voiceTime;
        }

        //Set time bar
        StartCoroutine(StartOrderCountdown(waitTime));

        if (individualOrder.type == 0)
        {
            imagesController.MovementOrder(individualOrder.color, individualOrder.isSimon, individualOrder.players, individualOrder.direction, waitTime);
        }
        else
        {
            voiceController.CheckVoice(individualOrder.word, individualOrder.isSimon, individualOrder.players, waitTime);
        }
    }