Example #1
0
 // Subscribe to events of project configuration
 public void Start()
 {
     editIssueMenu = GameObject.FindObjectOfType <EditIssueMenu>();
     editIssueMenu.gameObject.SetActive(false);
     GameObject.FindObjectOfType <ShelfConfigurationMenu>().SourceChanged         += SourceChanged;
     GameObject.FindObjectOfType <ShelfConfigurationMenu>().ReqBazProjectChanged  += ProjectChanged_RequirementBazaar;
     GameObject.FindObjectOfType <ShelfConfigurationMenu>().ReqBazCategoryChanged += CategoryChanged;
     GameObject.FindObjectOfType <ShelfConfigurationMenu>().GitHubOwnerChanged    += OwnerChanged;
     GameObject.FindObjectOfType <ShelfConfigurationMenu>().GitHubProjectChanged  += ProjectChanged_GitHub;
 }
Example #2
0
 public void Start()
 {
     //Get the edit menu from the project tracker and the UIs
     projectTracker      = GameObject.FindObjectOfType <ProjectTracker>();
     editMenu            = projectTracker.editIssueMenu;
     requirementBazaarUI = editMenu.requirementBazaar_UI;
     gitHubUI            = editMenu.gitHub_UI;
     Setup(new List <DataSource>()
     {
         DataSource.GITHUB, DataSource.REQUIREMENTS_BAZAAR
     });
 }
Example #3
0
 /// <summary>
 /// Called if the GameObject is enabled
 /// Registers for the IssueEdited and IssueDeleted Events
 /// </summary>
 private void OnEnable()
 {
     //Get the edit menu from the project tracker
     issueDataDisplay = GetComponent <IssueDataDisplay>();
     if (issueDataDisplay == null)
     {
         SpecialDebugMessages.LogComponentNotFoundError(this, nameof(IssueDataDisplay), gameObject);
     }
     projectTracker = GameObject.FindObjectOfType <ProjectTracker>();
     editMenu       = projectTracker.editIssueMenu;
     if (editMenu != null)
     {
         editMenu.IssueEdited += OnIssueEdited;
     }
     if (projectTracker != null)
     {
         projectTracker.IssueDeleted += OnIssueDeleted;
     }
 }