Example #1
0
    Fader_Script Fade_Out_Now;            // creating a referecne to our fader script


    // Use this for initialization
    void Start()
    {
        Menu_Selector_List = GameObject.FindGameObjectsWithTag("Menu_Selector"); // adding all fo our menu selctors to our menu selector list
        Current_Selection  = 1;                                                  // setting our current selction to be equal to 1 at the begginign of our game
        Instructions_Panel.SetActive(false);                                     // turning our instructions panel off
        Credits_Panel.SetActive(false);                                          // turning our credits panel off
        Can_Use_Arrow_Keys = true;                                               // setting this to allow our player to use arrow keys
        Can_Show_Selectors = true;                                               // setting this to allow to show selctors
        Fade_Out_Now       = GetComponent <Fader_Script>();                      // setting our fade out now script reference
    }
Example #2
0
    Fader_Script Fade_Script;         // creatinga  costum fade script

    // Use this for initialization
    void Start()
    {
        Fade_Script = GetComponent <Fader_Script> ();        // getting the faderscript from our camera
    }
    Fader_Script Fade_Out_Now;              // creating a reference for our fader script


    // Use this for initialization
    void Start()
    {
        Winning_Text.gameObject.SetActive(false);                 // setting our winning text gameobject to not be active at the start of the game
        Fade_Out_Now = Camera.main.GetComponent <Fader_Script>(); // assiging our fader script to our reference
    }