예제 #1
0
 // Use this for initialization
 void Start()
 {
     skin                     = Resources.Load("MenuBtnGUISkin") as GUISkin;
     scsScriptSMS             = GameObject.Find("ScenesControlObjectScript").GetComponent <ScenesControlScript> ();
     scsScriptSMS.strLevel    = "";
     scsScriptSMS.noBallLevel = 0;
 }
    // Use this for initialization
    void Start()
    {
        skin             = Resources.Load("SelectBallMenuGUISkin") as GUISkin;
        listCount        = 1;
        boolBallSelected = true;

        // Getting No Of Balls From Script.....
        scsScriptSBM = GameObject.Find("ScenesControlObjectScript").GetComponent <ScenesControlScript> ();
        levelNoBalls = scsScriptSBM.noBallLevel; Debug.Log(levelNoBalls);
    }
예제 #3
0
    // Use this for initialization
    void Start()
    {
        skin            = Resources.Load("ButtonGUISkin") as GUISkin;
        pauseEnabled    = false;
        otherMenuOpened = false;
        Time.timeScale  = 1;

        // Special Balls Array........
        generateBallsScriptBIB = GameObject.Find("Cart").GetComponent <GenerateBalls> ();
        specialBalls           = generateBallsScriptBIB.specialBalls;
        //Special Balls String Array....
        strSpecialBalls = Array.ConvertAll(specialBalls, w => w.ToString());

        //Getting Selected Balls Array.....
        scsScriptBIB  = GameObject.Find("ScenesControlObjectScript").GetComponent <ScenesControlScript> ();
        selectedBalls = scsScriptBIB.selectedBalls;
        // Key HighScoreEasy Or.......
        highScoreCheckKey = "HighScore" + scsScriptBIB.strLevel;
        //Score RESET
        //if(scsScriptBIB.strLevel=="Easy"){PlayerPrefs.SetInt (highScoreCheckKey,0);}
        // Selected Balls String Array.....
        strSltdBalls = Array.ConvertAll(selectedBalls, x => x.ToString());
    }
 // Use this for initialization
 void Start()
 {
     skin              = Resources.Load("MenuBtnGUISkin") as GUISkin;
     scsScriptNSS      = GameObject.Find("ScenesControlObjectScript").GetComponent <ScenesControlScript> ();
     highScoreCheckKey = "HighScore" + scsScriptNSS.strLevel;
 }