Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        Sound.LoadBgm ("forest", "theme_forest");
        Sound.LoadBgm ("desert", "theme_desert");
        Sound.LoadBgm ("snow", "theme_snow");

        tutorialScript = GameObject.Find ("GameManager").GetComponent<tutorialScript> ();
    }
Exemplo n.º 2
0
    //tutorialText
    void Start()
    {
        tutorialScript = GameObject.Find ("GameManager").GetComponent<tutorialScript> ();
        tutorialScript.changeTutorialText ("散らばった飛行船のパーツを集めよう!",5);

        Sound.LoadSe ("throw", "throw");Sound.LoadSe ("select", "select");Sound.LoadSe ("dash_1", "dash_1");
        Sound.LoadSe ("damaged", "player_damaged");Sound.LoadSe ("death", "player_death");
        Sound.LoadSe ("get", "get");Sound.LoadSe ("getfood", "getfood");
        Sound.LoadSe ("eat", "player_eat");

        animator = gameObject.GetComponent<Animator> ();

        //foodの初期値
        foodLeft[0] = 10;foodLeft[1]=10;foodLeft[2]=10;
        for (var i = 0; i < 3; i++) {
            foodLeftText [i].text = foodLeft [i].ToString ();
        }
    }