Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        EasyTTSUtil.Initialize(EasyTTSUtil.UnitedStates);
        agent = GetComponent <NavMeshAgent>();
        gmObj = new Dictionary <GameObject,
                                GameObject>()
        {
            // First Floor
            { firstUpStair1,
              upStairA1 },
            { firstUpStair2,
              upStairA2 },
            //Stairs going up
            { firstUpStair3,
              upStairA3 },

            { firstUpElev1,
              upElevA1 },
            { firstUpElev2,
              upElevA2 },
            //Elevators West and East going up

            // Second Floor
            { secondUpStair1,
              upStairB1 },
            { secondUpStair2,
              upStairB2 },
            //Stairs going up
            { secondDnStair1,
              dnStairB1 },
            { secondDnStair2,
              dnStairB2 },
            //Stairs going down
            { secondDnStair3,
              dnStairB3 },

            { secondUpElev1,
              upElevB1 },
            { secondUpElev2,
              upElevB2 },
            //Elevators West and East going up
            { secondDnElev1,
              dnElevB1 },
            { secondDnElev2,
              dnElevB2 },
            //Elevators West and East going down

            // Third Floor
            { thirdDnStair1,
              dnStairC1 },
            { thirdDnStair2,
              dnStairC2 },
            //Stairs going down
            { thirdDnElev1,
              dnElevC1 },
            { thirdDnElev2,
              dnElevC2 },
            //Elevators West and East going down
        };
    }
Exemplo n.º 2
0
    void Start()
    {
        toneSource        = this.gameObject.GetComponent <AudioSource> ();
        toneSource.loop   = true;
        toneSource.volume = 0;

        EasyTTSUtil.Initialize(EasyTTSUtil.UnitedStates);

        tagCount = GameObject.FindGameObjectsWithTag("DiagramElement").Length;

        if (tagCount > 0 && GameManager.textList [0] != "")
        {
            int r = int.Parse(GameManager.textList [0]);
            int g = int.Parse(GameManager.textList [1]);
            int b = int.Parse(GameManager.textList [2]);

            elementColor             = new Color32((byte)r, (byte)g, (byte)b, 1);
            elementLabel             = GameManager.textList [3];
            elementDescription       = GameManager.textList [4];
            GameManager.diagramTitle = GameManager.textList [5];
        }
        if (GameManager.piecewise == true)
        {
            elementOrder = GameManager.textList [5];
            this.enabled = false;
        }
    }
Exemplo n.º 3
0
        private void Start()
        {
#if !UNITY_EDITOR && UNITY_ANDROID
            EasyTTSUtil.Initialize();
#endif
            StartCoroutine(Init());
        }
Exemplo n.º 4
0
    void OnGUI()
    {
        GUI.BeginGroup(new Rect(Screen.width / 2 - 250, Screen.height / 2 - 250, 1000, 1000));
        GUI.Box(new Rect(0, 0, 500, 450), "EasyTTS Demo");
        stringToEdit = GUI.TextField(new Rect(30, 30, 440, 160), stringToEdit, 600);

        if (GUI.Button(new Rect(30, 230, 440, 40), "Speak"))
        {
            EasyTTSUtil.SpeechAdd(stringToEdit);
        }
        else if (GUI.Button(new Rect(30, 275, 440, 40), "ENG"))
        {
            // EasyTTSUtil.SpeechFlush (stringToEdit);
            EasyTTSUtil.Initialize(EasyTTSUtil.UnitedStates);
            EasyTTSUtil.SpeechFlush(eng);
        }
        else if (GUI.Button(new Rect(30, 320, 440, 40), "JP"))
        {
            // EasyTTSUtil.StopSpeech ();
            EasyTTSUtil.Initialize(EasyTTSUtil.Japan);
            EasyTTSUtil.SpeechFlush(jp);
        }
        else if (GUI.Button(new Rect(30, 365, 440, 40), "CH"))
        {
            // stringToEdit = "";
            EasyTTSUtil.Initialize(EasyTTSUtil.China);
            EasyTTSUtil.SpeechFlush(ch);
        }

        GUI.Label(new Rect(30, 420, 440, 100), "Stop and Repeat button only works once build on mobile iOS or Android ");

        GUI.EndGroup();
    }
Exemplo n.º 5
0
 //private DynamicRooms dr = new DynamicRooms();
 void Start()
 {
     EasyTTSUtil.Initialize(EasyTTSUtil.UnitedStates);
     //Debug.Log (floorPick());
     introToCurrentMenu();
     //rlc = new RoomLocationsConf ();
 }
Exemplo n.º 6
0
    // Use this for initialization

    void Start()
    {
        //EasyTTSUtil.Initialize(EasyTTSUtil.Italy);
        ExhibitID.text      = null;
        ExhibitData.text    = null;
        mTrackableBehaviour = GetComponent <TrackableBehaviour>();
        if (mTrackableBehaviour)
        {
            mTrackableBehaviour.RegisterTrackableEventHandler(this);
        }

        if (PlayerPrefs.GetString("language") == "UnitedKingdom")
        {
            EasyTTSUtil.Initialize(EasyTTSUtil.UnitedStates);
        }

        if (PlayerPrefs.GetString("language") == "Italy")
        {
            EasyTTSUtil.Initialize(EasyTTSUtil.Italy);
        }

        if (PlayerPrefs.GetString("language") == "France")
        {
            EasyTTSUtil.Initialize(EasyTTSUtil.France);
        }
    }
Exemplo n.º 7
0
    // Use this for initialization
    void Start()
    {
        EasyTTSUtil.Initialize(EasyTTSUtil.UnitedStates);
//		HomeBackgroundBitmaps = Resources.LoadAll<Sprite>("UI/HomeBackground");
        BackgroundTimer.Interval = 1000 / 15;
        BackgroundTimer.Elapsed += new ElapsedEventHandler(OnBackgroundTimeEvent);
    }
    void Start()
    {
        // Initialize the player
        EasyTTSUtil.Initialize(EasyTTSUtil.UnitedStates);               // text to speech
        //EasyTTSUtil.OpenTTSSetting ();
        playerRigidbody    = GetComponent <Rigidbody>();
        source             = GetComponent <AudioSource> ();
        mode               = 0;
        origin             = new Vector3(-40f, 2f, -53f);
        practicePosition   = new Vector3(50.4f, 2f, -50.7f);
        transform.position = origin;
        start              = "0,0,0";
        //"Not defined yet";
        end = "0,0,0";
        //"Not defined yet";
        isMoving      = false;
        source.clip   = footSteps;
        source.volume = 1f;

        trainingTimes    = 2;
        movedDistance    = 0;
        instruct         = "";
        infoBrg          = new TheInformationBridge();
        correctDirection = "";
        accessDirection  = "";
        logCount         = 0;
        isAllowMove      = true;
        isReachTarget    = false;
    }
Exemplo n.º 9
0
    void Start()
    {
        EasyTTSUtil.Initialize(EasyTTSUtil.UnitedStates);

        EasyTTSUtil.SpeechAdd("You're in the mode Selection Menu");
        EasyTTSUtil.SpeechAdd("Please swipe up    to select One route mode, " +
                              "swipe down to select same destination mode.");
    }
Exemplo n.º 10
0
    // Use this for initialization
    void Start()
    {
        EasyTTSUtil.Initialize(EasyTTSUtil.UnitedStates);
        nextDir = new NextDirection();

        readGameResults();
        readNextChoice();
    }
Exemplo n.º 11
0
 // Use this for initialization
 void Start()
 {
     EasyTTSUtil.Initialize(EasyTTSUtil.Japan);
     engineName           = EasyTTSUtil.GetDefaultEngineName();
     dataLoaderListenning = Camera.main.GetComponent <DataLoaderListenning>();
     DownloadTheAudio(dem);
     EasyTTSUtil.SpeechAdd(result);
 }
Exemplo n.º 12
0
    void Start()
    {
        EasyTTSUtil.Initialize(EasyTTSUtil.UnitedStates);

        selection = 0;
        Button back = backButton.GetComponent <Button>();

        back.onClick.AddListener(Back);
    }
Exemplo n.º 13
0
 public void changeLanguage(int value)
 {
     if (value == 0)
     {
         EasyTTSUtil.Initialize(EasyTTSUtil.Spain);
     }
     else if (value == 1)
     {
         EasyTTSUtil.Initialize(EasyTTSUtil.UnitedStates);
     }
 }
Exemplo n.º 14
0
    void Start()
    {
        EasyTTSUtil.Initialize(EasyTTSUtil.UnitedStates);

        string path = Application.persistentDataPath + "/LevleSave.json";

        string jsonString = File.ReadAllText(path);

        Debug.Log(jsonString);
        json = (JSONNode)JSON.Parse(jsonString);

        gameController = gameObject.GetComponent <GameController1> ();
        Button one     = levelOne.GetComponent <Button> ();
        Button two     = levelTwo.GetComponent <Button> ();
        Button three   = levelThree.GetComponent <Button> ();
        Button four    = levelFour.GetComponent <Button> ();
        Text   lvone   = numLevelOne.GetComponent <Text> ();
        Text   lvtwo   = numLevelTwo.GetComponent <Text> ();
        Text   lvthree = numLevelThree.GetComponent <Text> ();
        Text   lvfour  = numLevelFour.GetComponent <Text> ();


        print(json ["Level One"] ["End"].Count + ".");

        lvone.text   = json ["Level One"] ["End"].Count + ".";
        lvtwo.text   = json ["Level two"] ["End"].Count + ".";
        lvthree.text = json ["Level three"] ["End"].Count + ".";
        lvfour.text  = json ["Level four"] ["End"].Count + ".";

        inforBrg  = new TheInformationBridge();
        selection = 0;


        isGenerate = true;


        /*string path = Application.persistentDataPath + "/LevleSave.json";
         *
         * string jsonString = File.ReadAllText (path);
         * Debug.Log (jsonString);
         * json = (JSONNode)JSON.Parse (jsonString);*/
        roomLoc = new RoomLocationsConf();


        one.onClick.AddListener(ClickOne);
        two.onClick.AddListener(ClickTwo);
        three.onClick.AddListener(ClickThree);
        four.onClick.AddListener(ClickFour);
    }
Exemplo n.º 15
0
    // Use this for initialization
    void Awake()
    {
        Application.targetFrameRate = 77;
        QualitySettings.vSyncCount  = 0;

        // Initialize the player
        EasyTTSUtil.Initialize(EasyTTSUtil.UnitedStates);               // text to speech
        //EasyTTSUtil.OpenTTSSetting ();
        //playerRigidbody = GetComponent<Rigidbody>();
        infoBrg = new TheInformationBridge();
        agent   = GetComponent <NavMeshAgent> ();
        source  = GetComponent <AudioSource> ();
        rlc     = new RoomLocationsConf();

        playerStartingPoint = rlc.setStartingPoint();
        start = "0,0,0";
        //"Not defined yet";
        end = "0,0,0";
        //"Not defined yet";

        colTime        = Time.timeSinceLevelLoad;
        myCols         = new ArrayList();
        countColli     = 0;
        countWrongStep = 0;
        endOfGame      = false;
        isMoving       = false;
        interTime      = 1.0f;
        restartTime    = 0.0f;
        instruct       = "";
        nearBy         = "";
        nearByQueue    = new string[3];
        source.clip    = footSteps;
        source.volume  = 1f;
        firstTimeHit   = 0;

        correctDirection = "";
        accessDirection  = "";
        isAllowMove      = true;
        isReachTarget    = false;
        trackPosition    = new string[2];
        justTurned       = false;
        frameCount       = 1;

        if (collisionText != null)
        {
            collisionText.text = "Collision count: " + countColli.ToString();
        }
    }
Exemplo n.º 16
0
    void Start()
    {
        EasyTTSUtil.Initialize(EasyTTSUtil.UnitedStates);
        gameController = gameObject.GetComponent <GameController1> ();
        Button yes = yesButton.GetComponent <Button> ();
        Button no  = NoButton.GetComponent <Button> ();

        selection = 0;
        inforBrg  = new TheInformationBridge();
        inforBrg.setReachTarget(false);

        EasyTTSUtil.SpeechAdd("Do you want play again");
        Debug.Log("DO you want play again?");
        yes.onClick.AddListener(ClickYes);
        no.onClick.AddListener(ClickNo);
    }
Exemplo n.º 17
0
    // Use this for initialization
    void Start()
    {
        infoBrg = new TheInformationBridge();
        mode    = infoBrg.getTutorialMode();
        EasyTTSUtil.Initialize(EasyTTSUtil.UnitedStates);

        nextDir       = new NextDirection();
        rlc           = new RoomLocationsConf();
        infoBrg       = new TheInformationBridge();
        curVal        = 0;
        startPoint    = new Vector3(50.4f, 2f, -50.7f);
        endPoint      = new Vector3(50f, 2f, 38.2f);
        agent.enabled = false;
        isFeet        = false;

        //player.transform.position = startPoint;
        //Debug.Log (player.position+"********************");
        //player.transform.rotation = ;
        nextDir.setStart(startPoint);
        target.transform.position = endPoint;

        agent.enabled = true;
        //mode = infoBrg.getTutorialMode ();


        path = agent.path;

        //nextDirection = "";
        crntDirection = "";
        fourDir       = " ";

        //degree = 0;           No longer used to get next direction to way point

        if (!infoBrg.getReachTarget())
        {
            calculatePath();
        }
        numWayPoint = path.corners.Length;
        elapsed     = 0;

        curMsg = "constantly redefined";
        difMsg = "redefined only is curmsg changes";
        //Debug.Log (player.position+"++++++++");
        //for (int i = 0; i < path.corners.Length; i++)
        //Debug.Log (path.corners[i]);
        //adjustDirection ();
    }
    void OnGUI()
    {
        // Make a group on the center of the screen
        GUI.BeginGroup(new Rect(Screen.width / 2 - 250, Screen.height / 2 - 250, 1000, 1000));

        //	GUI.Box (new Rect (0,0,500,500), "\tSelect Engine Demo");


        stringToEdit = GUI.TextField(new Rect(30, 110, 440, 100), stringToEdit, 400);
        if (GUI.Button(new Rect(30, 210, 440, 40), "Speak"))
        {
            EasyTTSUtil.SpeechAdd(stringToEdit);
        }
        if (GUI.Button(new Rect(30, 320, 440, 40), "SelectList"))
        {
            selecting = true;
        }

        if (GUI.Button(new Rect(30, 360, 440, 40), "OpenTTSSetting"))
        {
            EasyTTSUtil.OpenTTSSetting();
        }


        if (selecting)
        {
            string[] nameArray = EasyTTSUtil.GetEngineNameArray();

            int selected = -1;
            selected = GUILayout.SelectionGrid(selected, nameArray, 1);
            if (selected != -1)
            {
                string[] pkgArray = EasyTTSUtil.GetEnginePkgArray();
                enginePkg  = pkgArray [selected];
                engineName = nameArray [selected];
                EasyTTSUtil.Initialize(EasyTTSUtil.UnitedStates, enginePkg);
                selecting = false;
            }
        }
        if (engineName == null)
        {
            engineName = "Your Text to Speech Engine will appear here after you press the button\n OpenTTSSetting";
        }
        GUI.TextField(new Rect(30, 400, 440, 40), engineName);

        GUI.EndGroup();
    }
Exemplo n.º 19
0
    // Use this for initialization
    void Start()
    {
        EasyTTSUtil.Initialize(EasyTTSUtil.UnitedStates);

        nextDir       = new NextDirection();
        rlc           = new RoomLocationsConf();
        infoBrg       = new TheInformationBridge();
        curVal        = 0;
        startPoint    = new Vector3(151.3f, 2f, -137.1f); //rlc.setStartingPoint ();
        endPoint      = new Vector3(52f, 2f, 17f);        //rlc.setEndingPoint ();
        agent.enabled = false;
        isFeet        = false;

        player.transform.position = startPoint;
        //Debug.Log (player.position+"********************");
        //player.transform.rotation = ;
        nextDir.setStart(startPoint);
        target.transform.position = endPoint;

        agent.enabled = true;


        //isTutored = false;
        instructMode = 0;
        path         = agent.path;

        //nextDirection = "";
        crntDirection = "";
        fourDir       = " ";

        //degree = 0;           No longer used to get next direction to way point

        calculatePath();
        isFirstTime = true;
        adjustDirection();
        numWayPoint = path.corners.Length;
        elapsed     = 0;

        curMsg              = "constantly redefined";
        difMsg              = "redefined only is curmsg changes";
        moveTurnInstruct    = 1;
        moveTurnInstructEnd = false;
        //Debug.Log (player.position+"++++++++");
        //for (int i = 0; i < path.corners.Length; i++)
        //Debug.Log (path.corners[i]);
        totalDistance();
    }
Exemplo n.º 20
0
    // Use this for initialization
    void Start()
    {
        if (PlayerPrefs.GetString("language") == "UnitedKingdom")
        {
            EasyTTSUtil.Initialize(EasyTTSUtil.UnitedStates);
        }

        if (PlayerPrefs.GetString("language") == "Italy")
        {
            EasyTTSUtil.Initialize(EasyTTSUtil.Italy);
        }

        if (PlayerPrefs.GetString("language") == "France")
        {
            EasyTTSUtil.Initialize(EasyTTSUtil.France);
        }
    }
Exemplo n.º 21
0
        void Start()
        {
#if !UNITY_EDITOR && UNITY_ANDROID
            // Initialize speech
            EasyTTSUtil.Initialize(EasyTTSUtil.UnitedKingdom);
#endif

            // Load vocabulary
            m_VocabularyDictionary = new DataDictionary();



            m_DataGrammar         = new GrammarDictionary();
            m_DataGamesDictionary = new GamesDictionary();

            m_StateMenu = STATE_MENU.MAIN_MENU;
            m_MainMenuPanelUI.Show();
        }
Exemplo n.º 22
0
    void Start()
    {
        EasyTTSUtil.Initialize(EasyTTSUtil.UnitedStates);
        gameController = gameObject.GetComponent <GameController1> ();
        Button gT      = generalTutorial.GetComponent <Button> ();
        Button tT      = trainingTutorial.GetComponent <Button> ();
        Button tM      = trainingMode.GetComponent <Button> ();
        Button gM      = gameMode.GetComponent <Button> ();
        Button calPath = CalculatPath.GetComponent <Button> ();

        selection = 0;
        inforBrg  = new TheInformationBridge();
        roomLoc   = new RoomLocationsConf();



        gT.onClick.AddListener(ClickGeneralTutorial);
        tT.onClick.AddListener(ClickTrainingTutorial);
        tM.onClick.AddListener(ClickTrainingMode);
        gM.onClick.AddListener(ClickGameMode);
        calPath.onClick.AddListener(ClickCalPath);
    }
Exemplo n.º 23
0
    void Start()
    {
        EasyTTSUtil.Initialize(EasyTTSUtil.UnitedStates);

        gameController = gameObject.GetComponent <GameController1> ();
        Button one     = levelOne.GetComponent <Button> ();
        Button two     = levelTwo.GetComponent <Button> ();
        Button three   = levelThree.GetComponent <Button> ();
        Button four    = levelFour.GetComponent <Button> ();
        Button confirm = confirmButton.GetComponent <Button> ();
        Button back    = backButton.GetComponent <Button>();
        Text   lvone   = numLevelOne.GetComponent <Text> ();
        Text   lvtwo   = numLevelTwo.GetComponent <Text> ();
        Text   lvthree = numLevelThree.GetComponent <Text> ();
        Text   lvfour  = numLevelFour.GetComponent <Text> ();


        inforBrg  = new TheInformationBridge();
        selection = 0;



        /*string path = Application.persistentDataPath + "/LevleSave.json";
         *
         * string jsonString = File.ReadAllText (path);
         * Debug.Log (jsonString);
         * json = (JSONNode)JSON.Parse (jsonString);*/
        roomLoc = new RoomLocationsConf();

        try
        {
            //EasyTTSUtil.SpeechAdd("try to catch the exception");
            inforBrg.setAutoGenerateStates(false);
            string path = Application.persistentDataPath + "/LevleSave.json";
            //EasyTTSUtil.SpeechAdd("one");
            string jsonString = "";
            //if (platform == RuntimePlatform.WindowsEditor || platform == RuntimePlatform.WindowsPlayer)
            jsonString = File.ReadAllText(path);

            /*if (platform == RuntimePlatform.OSXEditor || platform == RuntimePlatform.OSXPlayer)
             *      jsonString = File.ReadAllText (path);
             * if (platform == RuntimePlatform.Android || platform == RuntimePlatform.IPhonePlayer){
             *      TextAsset jsonTxt = (TextAsset)Resources.Load("LevleSave",typeof(JSON));
             *      jsonString = jsonTxt.text;
             * }*/
            //EasyTTSUtil.SpeechAdd("two");
            //Debug.Log (jsonString);
            json = (JSONNode)JSON.Parse(jsonString);

            print(json ["Level One"] ["End"].Count + ".");

            lvone.text   = json ["Level One"] ["End"].Count + ".";
            lvtwo.text   = json ["Level two"] ["End"].Count + ".";
            lvthree.text = json ["Level three"] ["End"].Count + ".";
            lvfour.text  = json ["Level four"] ["End"].Count + ".";
        }catch (FileNotFoundException e)
        {
            //EasyTTSUtil.SpeechAdd("catch the exceptoption");
            inforBrg.setAutoGenerateStates(true);
            roomLoc.getStartingPoint(new Vector3(44f, 2f, 138.7f));
            roomLoc.getEndingPoint(new Vector3(44f, 2f, 138.7f));
            Application.LoadLevel("CCNYGrove");
        }



        selectNum.onEndEdit.AddListener(SelectNumber);
        one.onClick.AddListener(ClickOne);
        two.onClick.AddListener(ClickTwo);
        three.onClick.AddListener(ClickThree);
        four.onClick.AddListener(ClickFour);
        confirm.onClick.AddListener(Confirm);
        back.onClick.AddListener(ClickBack);
    }
Exemplo n.º 24
0
    // Use this for initialization
    void Start()
    {
        EasyTTSUtil.Initialize(EasyTTSUtil.UnitedStates);

        nextDir       = new NextDirection();
        rlc           = new RoomLocationsConf();
        infoBrg       = new TheInformationBridge();
        curVal        = 0;
        startPoint    = rlc.setStartingPoint();
        endPoint      = rlc.setEndingPoint();
        agent.enabled = false;
        isFeet        = false;

        player.transform.position = rlc.setStartingPoint();
        //Debug.Log (player.position+"********************");
        //player.transform.rotation = ;
        nextDir.setStart(rlc.setStartingPoint());
        target.transform.position = rlc.setEndingPoint();

        agent.enabled = true;


        path = agent.path;

        //nextDirection = "";
        crntDirection = "";
        fourDir       = " ";

        //degree = 0;           No longer used to get next direction to way point

        numWayPoint = path.corners.Length;
        elapsed     = 0;

        isAutoGerneratePath = infoBrg.getAutoGenerateStates();
        if (isAutoGerneratePath)
        {
            SaveJson();
        }
        curMsg = "constantly redefined";
        difMsg = "redefined only is curmsg changes";
        //Debug.Log (player.position+"++++++++");
        //for (int i = 0; i < path.corners.Length; i++)
        //Debug.Log (path.corners[i]);
        calculatePath();
        adjustDirection();
        summary();


        /*
         * if (isAutoGerneratePath) {
         *      if (rooms == null)
         *              rooms = GameObject.FindGameObjectsWithTag ("Door");
         *      //Debug.Log (rooms.Length);
         *      roomPosition = new Vector3[rooms.Length];
         *      int i = 0;
         *      foreach (GameObject room in rooms) {
         *              roomPosition [i] = new Vector3(room.transform.position.x, 2f, room.transform.position.z);
         *              Debug.Log (roomPosition[i]);
         *              i++;
         *      }
         *
         *
         *      Vector3[] a = new Vector3[2];
         *      for(int j = 0; j < roomPosition.Length; j++){
         *              for(int k = 0; k < roomPosition.Length; k++){
         *                      if(j != k){
         *                              Debug.Log ("start: " + roomPosition[j] + "End: " + roomPosition[k]);
         *
         *                              Debug.Log (totalRoomPassedBy (roomPosition[j],roomPosition[k]) + " rooms pass by. "
         + totalPossibleTurn (roomPosition[j],roomPosition[k]) + " turns include."
         + DifficultWeight (roomPosition[j],roomPosition[k]) + " turn weight."
         + totalDistance(roomPosition[j],roomPosition[k]) + " Distance."
         + (totalRoomPassedBy (roomPosition[j],roomPosition[k]) * 2 + totalPossibleTurn (roomPosition[j],roomPosition[k])* 2
         + DifficultWeight (roomPosition[j],roomPosition[k]) * 10 + totalDistance(roomPosition[j],roomPosition[k])*0.1) + " DIfficutly.");
         +
         +                              difficulty = totalRoomPassedBy(roomPosition[j],roomPosition[k]) * 2
         + totalPossibleTurn(roomPosition[j],roomPosition[k]) * 2
         + DifficultWeight(roomPosition[j],roomPosition[k]) * 10
         + (totalDistance(roomPosition[j],roomPosition[k]) * 0.1);
         +
         +                              //Debug.Log (difficulty);
         +                              if(difficulty < 20 && difficulty >= 0){
         +                                      Debug.Log ("add success");
         +                                      levelOne.Add(a);
         +                                      //Debug.Log ("add success");
         +                              }
         +                              if(difficulty < 50 && difficulty >= 20){
         +                                      levelTwo.Add(a);
         +                              }
         +                              if(difficulty < 80 && difficulty >= 50){
         +                                      levelThree.Add(a);
         +                              }
         +                              if(difficulty >= 80){
         +                                      levelFour.Add(a);
         +                              }
         +
         +                      }
         +
         +              }
         +      }
         +      //json.Add ("Level one", levelOne.ToArray());
         +
         +      //Debug.Log(levelOne);
         +
         +      //for (int j = 0; j < roomPosition.Length; j++)
         +      //Debug.Log (roomPosition[j]);
         + }*/
    }
Exemplo n.º 25
0
    //Register reg;

    void Awake()
    {
        EasyTTSUtil.Initialize(EasyTTSUtil.UnitedStates);
        once = false;
    }
 void Start()
 {
     EasyTTSUtil.Initialize(EasyTTSUtil.Japan);
     engineName = EasyTTSUtil.GetDefaultEngineName();
 }
 void Start()
 {
     EasyTTSUtil.Initialize(EasyTTSUtil.UnitedStates);
     engineName = EasyTTSUtil.GetDefaultEngineName();
 }
Exemplo n.º 28
0
 // Use this for initialization
 void Start()
 {
     EasyTTSUtil.Initialize(EasyTTSUtil.Taiwan);
 }
Exemplo n.º 29
0
 void Start()
 {
     EasyTTSUtil.Initialize(EasyTTSUtil.Japan);
 }
Exemplo n.º 30
0
 void Start()
 {
     EasyTTSUtil.Initialize(EasyTTSUtil.UnitedStates);
 }