示例#1
0
 public static UIPhoto Instance()
 {
     if (instance == null)
     {
         instance = GameObject.FindObjectOfType <UIPhoto>();
     }
     if (instance == null)
     {
         Debug.LogError("No UIPhoto in the scene");
     }
     return(instance);
 }
    void Start()
    {
        blocNote = GetComponent <BlocNoteManager>();
        UIPhoto  = GetComponent <Photo.UIPhoto>();
        options  = GetComponent <OptionsManager>();

        // Coefficient du rescale de l'UI

        isActive = book.activeSelf;

        Cursor.visible   = false;
        Cursor.lockState = CursorLockMode.Locked;
    }