Наследование: EditorWindow
Пример #1
0
    public static void Init()
    {
        // Get existing open window or if none, make a new one:
        Instance = EditorWindow.GetWindow <GitPullWindow>(true, "Git Pull");

        Instance.remotes = GitSystem.GetRemotesList();

        for (int i = 0; i < Instance.remotes.Length; i++)
        {
            if (Instance.remotes[i] == GitSystem.currentRemote)
            {
                Instance.remoteSelection = i;
            }
        }
    }
Пример #2
0
    public static void Init()
    {
        // Get existing open window or if none, make a new one:
        Instance = EditorWindow.GetWindow<GitPullWindow>(true, "Git Pull");

        Instance.remotes = GitSystem.GetRemotesList();

        for ( int i = 0; i < Instance.remotes.Length; i++ )
        {
            if ( Instance.remotes[i] == GitSystem.currentRemote )
            {
                Instance.remoteSelection = i;
            }
        }
    }
Пример #3
0
 static void GitPull()
 {
     GitPullWindow.Init();
 }