private void CreatePanelFlags() { PanelFlags = new FlagPanel() { Tag = "Flags", Location = Dock_RightBot }; Controls.Add(PanelFlags); }
private void ProcessFlagPanel(FlagPanel flagPanel, GameObject source) { if (!flagPanel) { Debug.LogWarning("Missing FlagPanel " + source); } else if (flagPanel.Content == null) { Debug.LogWarning(source + " FlagPanel has no panel path set"); } else { OnHit.Invoke(flagPanel.Content); } }