public void DeselectDeliverable()
    {
        if ((UnityEngine.Object)controller != (UnityEngine.Object)null)
        {
            controller.RemoveDeliverable(info);
        }
        ImageToggleState component = selectButton.GetComponent <ImageToggleState>();

        component.SetInactive();
        selectButton.Deselect();
        selectButton.ClearOnClick();
        selectButton.onClick += delegate
        {
            SelectDeliverable();
        };
        selectedBorder.SetActive(false);
        titleBar.color = deselectedTitleColor;
    }
Esempio n. 2
0
 public void DeselectDeliverable()
 {
     if ((UnityEngine.Object)controller != (UnityEngine.Object)null)
     {
         controller.RemoveDeliverable(stats);
     }
     selectButton.GetComponent <ImageToggleState>().SetInactive();
     selectButton.Deselect();
     selectButton.ClearOnClick();
     selectButton.onClick += delegate
     {
         SelectDeliverable();
     };
     selectedBorder.SetActive(false);
     titleBar.color = deselectedTitleColor;
     animController.Queue("cheer_pst", KAnim.PlayMode.Once, 1f, 0f);
     animController.Queue("idle_default", KAnim.PlayMode.Loop, 1f, 0f);
 }