示例#1
0
    private void TurnsOnGraphics()
    {
        Debug.Log ("isOptions" + TranslateMenu.isOptions);
        Debug.Log ("isCredits" + TranslateMenu.isCredits);
        Debug.Log ("isOptBack" + TranslateMenu.isOptBack);
        Debug.Log ("isCreBack" + TranslateMenu.isCreBack);

        onGraphics.SetActive(true);
        offGraphics.SetActive(false);
        //midGraphics.SetColor(MidGraphicsOnColor);
        midGraphics.SetMaterial (MidGraphicsOnMaterial, MidGraphicsOnColor);
        //botGraphics.SetColor(BotGraphicsOnColor);
        botGraphics.SetMaterial(BotGraphicsOffMaterial, BotGraphicsOnColor);
        //Application.LoadLevel ("WalkingTerrainTest");
        //FadeControl.isFade = true;

        //GameObject ob = GameObject.FindGameObjectWithTag ("Menu");
        //		TranslateMenu.isOptions = true;
        //		TranslateMenu.isOptBack = false;
        //		TranslateMenu.isCreBack = false;
        FadeControl.isFade = true;
        controller = GameObject.FindObjectOfType<FadeTransparency> ();
        controller.EndScene (1);
        collisionDetectPlayer.isPlayerDead = false;
        //Application.LoadLevel (1);

        ButtonAudioCtrl.isPressed = true;
        ButtonAudioCtrl.playFirstTime = true;
    }
示例#2
0
 // Use this for initialization
 void Start()
 {
     isFade = false;
     fader = GameObject.FindObjectOfType<FadeTransparency> ();
 }