예제 #1
0
    // ########################################
    // Toggle button functions
    // ########################################

    #region Toggle Button

    // Toggle TopLeft buttons
    public void display_intro()
    {
        intro_panel.MoveIn(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        buy_button.MoveIn(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        cancel_button.MoveIn(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        reset_buy_button();
        if (intro_panel_data.GetComponent <ItemIntroData> ().is_bought)
        {
            if (intro_panel_data.GetComponent <ItemIntroData> ().is_equipped)
            {
                buy_button.GetComponent <Button> ().interactable = false;
                buy_button.GetComponentInParent <ItemIntroData> ().buy_text.text = "Equipped";
            }
            else
            {
                buy_button.GetComponentInParent <ItemIntroData> ().buy_text.text = "Equip";
            }
        }
    }
예제 #2
0
    IEnumerator FailStep()
    {
        yield return(new WaitForSeconds(0f));

        GameObject.FindGameObjectWithTag("SceneController").GetComponent <SceneController> ().moveInGui(0f);
        cur_step--;
        if (cur_step <= 0)
        {
            FailLevel();
        }
        else
        {
            ReloadCannonButton.GetComponent <HintPool> ().ChangeHintText();
            ReloadCannonButton.MoveIn(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        }
    }