GetLastIPString() публичный статический Метод

public static GetLastIPString ( ) : string
Результат string
Пример #1
0
        private static void AddLastIPProfiler(List <ProfilerChoise> profilers)
        {
            string lastIP = ProfilerIPWindow.GetLastIPString();

            if (!string.IsNullOrEmpty(lastIP))
            {
                ProfilerChoise item = default(ProfilerChoise);
                item.Name       = lastIP;
                item.Enabled    = true;
                item.IsSelected = (() => ProfilerDriver.connectedProfiler == 65261);
                item.ConnectTo  = delegate
                {
                    AttachProfilerUI.DirectIPConnect(lastIP);
                };
                profilers.Add(item);
            }
        }
Пример #2
0
        static void AddLastIPProfiler(List <ProfilerChoise> profilers)
        {
            string lastIP = ProfilerIPWindow.GetLastIPString();

            if (string.IsNullOrEmpty(lastIP))
            {
                return;
            }

            profilers.Add(new ProfilerChoise()
            {
                Name       = lastIP,
                Enabled    = true,
                IsSelected = () => { return(ProfilerDriver.connectedProfiler == PLAYER_DIRECT_IP_CONNECT_GUID); },
                ConnectTo  = () => {
                    DirectIPConnect(lastIP);
                }
            });
        }
Пример #3
0
 private static void AddLastIPProfiler(List <ProfilerChoise> profilers)
 {
     // ISSUE: object of a compiler-generated type is created
     // ISSUE: variable of a compiler-generated type
     AttachProfilerUI.\u003CAddLastIPProfiler\u003Ec__AnonStoreyA7 profilerCAnonStoreyA7 = new AttachProfilerUI.\u003CAddLastIPProfiler\u003Ec__AnonStoreyA7();
     // ISSUE: reference to a compiler-generated field
     profilerCAnonStoreyA7.lastIP = ProfilerIPWindow.GetLastIPString();
     // ISSUE: reference to a compiler-generated field
     if (string.IsNullOrEmpty(profilerCAnonStoreyA7.lastIP))
     {
         return;
     }
     // ISSUE: reference to a compiler-generated field
     // ISSUE: reference to a compiler-generated method
     profilers.Add(new ProfilerChoise()
     {
         Name       = profilerCAnonStoreyA7.lastIP,
         Enabled    = true,
         IsSelected = (Func <bool>)(() => ProfilerDriver.connectedProfiler == 65261),
         ConnectTo  = new System.Action(profilerCAnonStoreyA7.\u003C\u003Em__1EA)
     });
 }
Пример #4
0
 private void OnEnable()
 {
     this.m_IPString = ProfilerIPWindow.GetLastIPString();
 }