Esempio n. 1
0
        public bool AddDrawer(string name, Drawer drawer)
        {
            if (DrawerMap.ContainsKey(name))
            {
                return(false);
            }

            DrawerMap.Add(name, drawer);

            return(true);
        }
Esempio n. 2
0
        public void SetDrawer(string name)
        {
            Drawer drawer;

            if (DrawerMap.TryGetValue(name, out drawer))
            {
                Stop();
                SelectedDrawer = drawer;
                SelectedDrawer.Initialize();
                ElapsedFrameCount = 0;
            }
        }
Esempio n. 3
0
 public bool AnyDrawer()
 {
     return(DrawerMap.Any());
 }
Esempio n. 4
0
 private void OnDisable()
 {
     ElapsedFrameCount         = 0;
     EditorApplication.update -= EditorUpdate;
     DrawerMap.Clear();
 }
Esempio n. 5
0
 private void OnEnable()
 {
     ElapsedFrameCount = 0;
     DrawerMap.Clear();
 }
Esempio n. 6
0
 public void Clear()
 {
     DrawerMap.Clear();
 }