Пример #1
0
    void Gray()
    {
        WhiteCam.active = BlackCam.active = true;
        SelectionWindow.SetActiveRecursively(false);
        gameState          = GameState.PlayGame;
        currentPlayMode    = CurrentPlayMode.Grey;
        time               = Time.timeSinceLevelLoad;
        CharWRender.active = CharBRender.active = true;

        TutorialWindow.SetActiveRecursively(true);
    }
Пример #2
0
 void White()
 {
     WhiteCam.active = BlackCam.active = false;
     MainCam.active  = true;
     ActivateBlackMode(false);
     ActivateWhiteMode(true);
     SelectionWindow.SetActiveRecursively(false);
     gameState = GameState.PlayGame;
     GameManager.currentPlayMode = CurrentPlayMode.White;
     time = Time.timeSinceLevelLoad;
     CharWRender.active = true;
     CharBRender.active = false;
     TutorialWindow.SetActiveRecursively(true);
 }
Пример #3
0
    void Awake()
    {
        BlackMat.color = new Color(BlackMat.color.r, BlackMat.color.g, BlackMat.color.b, 1f);
        WhiteMat.color = new Color(WhiteMat.color.r, WhiteMat.color.g, WhiteMat.color.b, 1f);
        gameState      = GameState.OpeningWindow;
        OpeningWindow.SetActiveRecursively(true);
        GameOverWindow.SetActiveRecursively(false);
        SelectionWindow.SetActiveRecursively(false);
        TutorialWindow.SetActiveRecursively(false);


        BlackCam.camera.rect = new Rect(0.5f, 0, 0.5f, 1);
        WhiteCam.camera.rect = new Rect(0, 0, 0.5f, 1);

        MainCam.camera.rect = new Rect(0, 0, 1, 1);
        MainCam.active      = true;
        BlackCam.active     = WhiteCam.active = false;
        //fb = fbsuccess.GetComponent<UILabel>();

        deathLbl.text = "You died: @ time(s)!";
        timeLbl.text  = "Your max time: @";

        //White();
    }
Пример #4
0
 void Play()
 {
     OpeningWindow.SetActiveRecursively(false);
     SelectionWindow.SetActiveRecursively(true);
 }