Exemplo n.º 1
0
    public void StartTrial()
    {
        lastFacing = -6;

        if (trial % 2 == 1)
        {
            rightNextInc = false;
        }
        else
        {
            rightNextInc = true;
        }

        first = true;
        gray  = false;
        writer.SetGray(false);
        writer.SetStart(false);
        playerCam.enabled    = true;
        playerCanvas.enabled = true;
        grayCam.enabled      = false;
        grayCanvas.enabled   = false;
        GameObject hex = startHexes[trial];

        curHex = hex;
        move.StartTrial(hex.transform.position.x,
                        hex.transform.position.z);
        choosing        = true;
        choiceStartTime = Time.time;
        move.SetCanMove(true);
        move.SetCanTurn(true);

        if (mode == 1)
        {
            UpdateHexes();
            writer.WriteTrialStart(betaStr);
        }
        else
        {
            BroadcastMessage("SetExplore");
            writer.WriteTrialStart();
        }

        hud.ClearGoal();
        move.SetFacing(GetHeadingToCenter());
        move.SnapRot();
    }