コード例 #1
0
 private void CreatePanelFlags()
 {
     PanelFlags = new FlagPanel()
     {
         Tag      = "Flags",
         Location = Dock_RightBot
     };
     Controls.Add(PanelFlags);
 }
コード例 #2
0
 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);
     }
 }