public void ErrorFixed()
 {
     displayingError      = false;
     spriteRenderer.color = new Color(255, 255, 255, 0);
     if (titlePanel != null)
     {
         Destroy(titlePanel.gameObject);
         titlePanel = null;
     }
 }
 public void ForceOff()
 {
     displayingError    = false;
     displayingSelected = false;
     if (titlePanel != null)
     {
         Destroy(titlePanel.gameObject);
         titlePanel = null;
     }
 }
 public void OnDeselect()
 {
     displayingSelected   = false;
     spriteRenderer.color = new Color(255, 255, 255, 0);
     if (titlePanel != null)
     {
         Destroy(titlePanel.gameObject);
         titlePanel = null;
     }
 }
 public void BeingMoved()
 {
     spriteRenderer.sprite = SpriteManager.AIselectedIndicator;
     spriteRenderer.color  = new Color(255, 255, 255, 1);
     displayingSelected    = true;
     if (titlePanel != null)
     {
         Destroy(titlePanel.gameObject);
         titlePanel = null;
     }
 }
 public void CreateTitlePanel(bool error, string topString, string bottomString)
 {
     if (textImagesParent == null)
     {
         Start();
     }
     if (titlePanel == null)
     {
         titlePanel = Instantiate(titlePanelPrefab).GetComponent <ProductSelectedTitlePanel>();
         titlePanel.OnLoad(this);
         titlePanel.transform.SetParent(textImagesParent, false);
         titlePanel.transform.localScale = new Vector3(.8f, .8f, .8f);
     }
     if (error)
     {
         titlePanel.SetToError();
     }
     else
     {
         titlePanel.SetToSelected();
     }
     titlePanel.SetText(topString, bottomString);
 }