Esempio n. 1
0
    public float speedOfScaling;                                                        //Speed of scaling bubble



    void Start()
    {
        matrixScript = GameObject.Find("Controller").GetComponent <BubbleMatrix>();
        isMoving     = false;
        targetPos    = gameObject.transform.localPosition;
        isScaling    = false;
    }
Esempio n. 2
0
 public GameController()
 {
     //Debug.Log("Starts GameController ");
     lifes = 3;
     bubbleMatrix = new BubbleMatrix ();
     totalScore = 0;
     bubbleSp = new int[sizeSp];
     for(int i=0;i<sizeSp;i++){
         bubbleSp[i] = -1;
     }
     bubbleSpIn = 0;
     visibles = new ArrayList ();
 }
Esempio n. 3
0
 public GameController()
 {
     Debug.Log("Starts GameController ");
     bubbleMatrix = new BubbleMatrix ();
 }
Esempio n. 4
0
    // Use this for initialization
    void Start()
    {
        controlState = 1;
        soundController = GetComponent<SoundController>();
        bubbleMatrix = GetComponent<BubbleMatrix>();
        bubbleMatrix.gameover = new GameOver(gameOverIE); // 设置游戏结束的委托
        bubbleMatrix.gamestart = new GameStart(gamerStart);

        gemNum = PlayerPrefs.GetInt("GemNum", 0);
        bombNum = PlayerPrefs.GetInt("BombNum", 0);
        chooseNum = PlayerPrefs.GetInt("ChooseNum", 0);
        refreshNum = PlayerPrefs.GetInt("RefreshNum", 0);
        successScore = getSuccessScore();

        uiController.setLevelInfo(level, gemNum, successScore, score);
        uiController.setPropNum(bombNum, chooseNum, refreshNum);
        uiController.showLevelInfo(level, successScore);
    }