Example #1
0
    // Use this for initialization
    void Start()
    {
        //time.timescale=1;
        GameParams.SetScore(0);
        _NextScene = "";
        moveBall.ClearBallCount();

        /* for (int i = 0; i < TekiCount; i++){
         *   Instantiate(prefTeki);
         * }
         * for (int i = 0; i < ItemCount; i++){
         *   Instantiate(prefItem);
         * }*/
    }
Example #2
0
 private void Landing(string infoText, int score)
 {
     gm.GetGUI().infoDrop.SetActive(true);
     gm.GetGUI().drop.text = infoText;
     gm.GetGUI().valDrop.text = "+" + score.ToString();
     Debug.Log(infoText + " : " + score.ToString());
     GameParams.AddScore(score);
     GameParams.AddLastScore(score);
     GameParams.SetScore(GameParams.GetScore() * curValFlip);
     GameParams.SetLastScore(GameParams.GetScore());
     am.PlayLanding();
     curValFlip = 0;
     StartCoroutine(HideInfoDrop(1f));
     _backFlip = false;
 }
Example #3
0
    // Use this for initialization
    void Start()
    {
        Time.timeScale = 1;
        GameParams.SetScore(0);
        _nextScene = "";
        MoveBALL.clearBallCount();

        /*//アイテム
         * for (int s = 0; s < ItemCount; s++) {
         *      Instantiate (prefItem);
         * }
         *
         * //敵の出現
         * for (int i = 0; i < TekiCount; i++) {
         *      Instantiate (prefTeki);
         * }*/
    }
Example #4
0
    // Use this for initialization
    void Start()
    {
        Time.timeScale = 1f;

        GameParams.SetScore(0);
        _nextScene = "";
        MoveBall.ClearBallCount();

        _instance = this;

        /*
         * // 敵を出現
         * for (int i = 0; i < TekiCount; i++) {
         *      Instantiate (prefTeki);
         * }
         * // アイテムを出現
         * for (int i = 0; i < ItemCount; i++) {
         *      Instantiate (prefItem);
         * }
         */
    }
Example #5
0
    public void Game()
    {
        fading.GetComponent <Animation>().Play("Fading");
        Time.timeScale = 1;
        stateGame      = "game";
        spawn.GenerationLevel();
        GameParams.SetScore(0);
        GameParams.SetLastScore(0);
        GUI.menuP.SetActive(false);
        GUI.storeP.SetActive(false);
        GUI.infoLastScore.SetActive(false);
        GUI.score.gameObject.SetActive(true);
        GUI.coinsObj.SetActive(true);
        GUI.pause.gameObject.SetActive(true);
        controller.SetActive(true);
        audioManager.PlayClick();
        isPause = false;
        audioManager.PlayGamePlay();

        car.SetActive(true);
        InitGame();
    }
Example #6
0
    // Use this for initialization
    void Start()
    {
        Time.timeScale = 1f;
        GameParams.SetScore(0);
        _nextScene = "";
        MoveBall.ClearBallCount();


        _instance = this;

        /*
         * // 敵を出現
         * for (int i = 0; i < TekiCount; i++) {
         *      Instantiate (prefTeki);
         * }
         * // アイテムを出現
         * for (int i = 0; i < ItemCount; i++) {
         *      Instantiate (prefItem);
         * }
         */

        // 変数にコンポーネント格納
        sound01 = GetComponent <AudioSource>();
    }
Example #7
0
 // Use this for initialization
 void Start()
 {
     GameParams.SetScore(0);
 }
Example #8
0
 void Start()
 {
     SE = gameObject.GetComponents <AudioSource> ();
     GameParams.SetScore(0);
     //PlaySE (5); Play On AwakeでやっているからOK。
 }