Show() public static method

public static Show ( Rect buttonScreenRect ) : void
buttonScreenRect UnityEngine.Rect
return void
示例#1
0
 void AddEnterIPProfiler(List <ProfilerChoise> profilers, Rect buttonScreenRect)
 {
     profilers.Add(new ProfilerChoise()
     {
         Name       = kEnterIPText,
         Enabled    = true,
         IsSelected = () => { return(false); },
         ConnectTo  = () => { ProfilerIPWindow.Show(buttonScreenRect); }
     });
 }
        private void AddEnterIPProfiler(List <ProfilerChoise> profilers, Rect buttonScreenRect)
        {
            ProfilerChoise item = default(ProfilerChoise);

            item.Name       = AttachProfilerUI.kEnterIPText;
            item.Enabled    = true;
            item.IsSelected = (() => false);
            item.ConnectTo  = delegate
            {
                ProfilerIPWindow.Show(buttonScreenRect);
            };
            profilers.Add(item);
        }