public void GoToCopyAndPastingScreen()
 {
     MainMnuScreen.SetActive(false);
     OfflineCheckOutScreen.SetActive(false);
     ReadACheckoutFileScreen.SetActive(false);
     CopyAndPastingScreen.SetActive(true);
 }
    private void Awake()
    {
        if (__instance__ == null)
        {
            __instance__ = this;
        }
        else
        {
            Destroy(this.gameObject);
        }


        MainMnuScreen.SetActive(true);
        OfflineCheckOutScreen.SetActive(false);
        ReadACheckoutFileScreen.SetActive(false);
        CopyAndPastingScreen.SetActive(false);
        ResetListOnStartUpIfAvailable();
    }
示例#3
0
    void OnGUI()
    {
        if (fb.draw())
        {
            if (fb.outputFile == null)
            {
                Debug.Log("Cancel hit");
                parent_screen = FindObjectOfType <ReadACheckoutFileScreen>();
                parent_screen.CancelBrowse();
                Destroy(this.gameObject);
            }
            else
            {
                parent_screen = FindObjectOfType <ReadACheckoutFileScreen>();
                Debug.Log("Ouput File = \"" + fb.outputFile.ToString() + "\"");
                parent_screen.SetFileLocation(fb.outputFile.ToString());

                Destroy(this.gameObject);
                /*the outputFile variable is of type FileInfo from the .NET library "http://msdn.microsoft.com/en-us/library/system.io.fileinfo.aspx"*/
            }
        }
    }