// 获得Panel protected T GetPanel <T>(string name) where T : UPanel { if (Panels.ContainsKey(name)) { return(Panels[name] as T); } return(null); }
private void AddPanel(Vector2 location) { if (!Panels.ContainsKey(Location)) { var panel = new HullPanel(location); Panels.Add(location, panel); } }
public bool IsPaintedWhite(Vector2 inspect) { if (Panels.ContainsKey(inspect)) { return(Panels[inspect].White); } return(false); }