// MoveOut all primary buttons
    public void HideAllGUIs()
    {
        // MoveOut all primary buttons
        m_PrimaryButton1.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        m_PrimaryButton2.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        m_PrimaryButton3.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        m_PrimaryButton4.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        m_PrimaryButton5.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);

        // MoveOut all secondary buttons
        if (m_Button1_IsOn == true)
        {
            m_SecondaryButton1.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        }
        if (m_Button2_IsOn == true)
        {
            m_SecondaryButton2.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        }
        if (m_Button3_IsOn == true)
        {
            m_SecondaryButton3.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        }
        if (m_Button4_IsOn == true)
        {
            m_SecondaryButton4.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        }
        if (m_Button5_IsOn == true)
        {
            m_SecondaryButton5.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        }

        // MoveOut m_Title1 and m_Title2
        StartCoroutine(HideTitleTextMeshes());
    }
Esempio n. 2
0
    // MoveOut all primary buttons
    public void HideAllGUIs()
    {
        // MoveOut all primary buttons
        m_CenterButtons.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);

        // MoveOut all side bars
        if (m_Bar1_IsOn == true)
        {
            m_Bar1.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        }
        if (m_Bar2_IsOn == true)
        {
            m_Bar2.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        }
        if (m_Bar3_IsOn == true)
        {
            m_Bar3.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        }
        if (m_Bar4_IsOn == true)
        {
            m_Bar4.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        }

        // MoveOut m_Title1 and m_Title2
        StartCoroutine(HideTitleTextMeshes());
    }
    // MoveOut m_Dialog
    public void HideAllGUIs()
    {
        // MoveOut m_Dialog
        m_Dialog.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);

        // MoveOut m_Title1 and m_Title2
        StartCoroutine(HideTitleTextMeshes());
    }
 public void HideAllGUIs()
 {
     // MoveOut dialogs
     m_Dialog1.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
     m_Dialog2.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
     m_Dialog3.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
     m_Dialog4.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
 }
Esempio n. 5
0
    // MoveOut all dialogs and buttons
    public void HideAllGUIs()
    {
        // MoveOut all dialogs
        m_Dialog.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        m_DialogButtons.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);

        // MoveOut all buttons
        m_Button1.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        m_Button2.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        m_Button3.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        m_Button4.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
    }
 // Toggle m_Button1
 public void ToggleButton_1()
 {
     m_Button1_IsOn = !m_Button1_IsOn;
     if (m_Button1_IsOn == true)
     {
         // MoveIn m_SecondaryButton1
         m_SecondaryButton1.MoveIn(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
     }
     else
     {
         // MoveOut m_SecondaryButton1
         m_SecondaryButton1.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
     }
 }
Esempio n. 7
0
    // MoveOut all dialogs and buttons
    public void HideAllGUIs()
    {
        // MoveOut all dialogs
        m_Dialog.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        m_DialogButtons.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);

        // MoveOut all buttons
        m_Button1.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        m_Button2.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        m_Button3.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        m_Button4.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);

        // MoveOut m_Title1 and m_Title2
        StartCoroutine(HideTitleTextMeshes());
    }
	// MoveOut m_Title1 and m_Title2
	IEnumerator HideTitleTextMeshes()
	{
		yield return new WaitForSeconds(1.0f);

		// MoveOut m_Title1 and m_Title2
		m_Title1.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);
	}
Esempio n. 9
0
    public void Recover()
    {
        GameObject.FindGameObjectWithTag("StepHolder").GetComponent <StepLayout> ().pushFirstChild();

        ReloadCannonButton.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        // Logic to recover
        Transform[] all_gameobjects = gameobjects.GetComponentsInChildren <Transform> (true);
        int         count           = 0;
        float       time_count      = 1.0f;

        foreach (Transform objec in all_gameobjects)
        {
            count++;
            if (!objec.gameObject.activeInHierarchy)
            {
                // Enable Object one by one
                StartCoroutine(setObjectActive(objec, time_count));
                time_count += 0.5f;
            }
            if (count == all_gameobjects.Length)
            {
                StartCoroutine(setLauncherShadow());
                StartCoroutine(activeStep());
            }
        }
    }
 // Toggle show/hide Help panel
 public void OnToggle_Help()
 {
     if (m_ToggleHelp != null)
     {
         if (m_ToggleHelp.isOn == true)
         {
             if (m_PanelHelp1 != null)
             {
                 m_PanelHelp1.MoveIn(GUIAnimSystemFREE.eGUIMove.Self);
             }
             if (m_PanelHelp2 != null)
             {
                 m_PanelHelp2.MoveIn(GUIAnimSystemFREE.eGUIMove.Self);
             }
         }
         else
         {
             if (m_PanelHelp1 != null)
             {
                 m_PanelHelp1.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);
             }
             if (m_PanelHelp2 != null)
             {
                 m_PanelHelp2.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);
             }
         }
     }
 }
Esempio n. 11
0
    IEnumerator MoveOutGUI(float moveOutTime)
    {
        yield return(new WaitForSeconds(moveOutTime));

        m_HUD.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        MenuToggle.gameObject.SetActive(true);
    }
Esempio n. 12
0
	// MoveOut all primary buttons
	public void HideAllGUIs()
	{
        m_MiddleCenter_A.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);
        m_MiddleCenter_B.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);

        // MoveOut m_Title1 and m_Title2
        StartCoroutine(HideTitleTextMeshes());
	}
    // ########################################
    // Switch category functions
    // In runtime, press Left/Right key or use previous/next category buttons to change category.
    // ########################################

    #region Switch category

    public void CloseAds()
    {
#if UNITY_WEBGL // Operates Ads Panel only in WebGL
        m_Ads.MoveOut();
#endif

        StartCoroutine(ShowCanvases(1f));
    }
Esempio n. 14
0
    // MoveOut m_Title1 and m_Title2
    IEnumerator HideMainButtonObjects()
    {
        yield return(new WaitForSeconds(0.2f));

        // MoveOut
        m_SoloButton.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);
        m_MultiButton.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);
        m_SettingsButton.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);
    }
Esempio n. 15
0
    IEnumerator activeStep()
    {
        // Active Intro
        Step_Fail_Panel.MoveIn(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        yield return(new WaitForSeconds(1.0f));

        Step_Fail_Panel.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        StartCoroutine(activeLaunchers());
    }
Esempio n. 16
0
    // MoveOut m_Title1 and m_Title2
    IEnumerator HideTitleTextMeshes()
    {
        yield return(new WaitForSeconds(0.5f));

        // MoveOut m_Title1 and m_Title2
        m_Title1.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);

        // MoveOut m_TopBar and m_BottomBar
    }
Esempio n. 17
0
    // MoveOut m_Title1 and m_Title2
    IEnumerator HideMainButtonObjects()
    {
        yield return(new WaitForSeconds(0.05f));

        // MoveOut
        m_VersusButton.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);
        m_CoopButton.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);
        m_BackButton.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);
    }
Esempio n. 18
0
    IEnumerator HideLogo()
    {
        yield return(null);

        logoParent.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        iniciarText.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);

        GUIAnimSystemFREE.Instance.LoadLevel("Game", 1.5f);
    }
Esempio n. 19
0
    IEnumerator SetupLevel()
    {
        yield return(new WaitForSeconds(1.0f));

        m_LevelIntro_Panel.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);

        yield return(new WaitForSeconds(0.5f));

        primary_game_object.SetActive(true);
    }
Esempio n. 20
0
    // MoveOut m_Title1 and m_Title2
    IEnumerator HideMainButtonObjects()
    {
        yield return(new WaitForSeconds(0.05f));

        // MoveOut
        m_resetDataButton.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);
        m_addGoldButton.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);
        m_addStoryButton.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);
        m_BackButton.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);
    }
Esempio n. 21
0
    // MoveOut m_Title1 and m_Title2
    IEnumerator HideMainButtonObjects()
    {
        yield return(new WaitForSeconds(0.05f));

        // MoveOut
        m_StoryButton.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);
        m_ArcadeButton.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);
        m_SurvivalButton.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);
        m_PowerUp.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);
        m_BackButton.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);
    }
Esempio n. 22
0
    // MoveOut all primary buttons
    public void HideAllGUIs()
    {
        m_TopLeft_A.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        m_BottomLeft_A.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        m_RightBar_A.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);

        if (m_TopLeft_IsOn == true)
        {
            m_TopLeft_B.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        }
        if (m_BottomLeft_IsOn == true)
        {
            m_BottomLeft_B.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        }
        if (m_RightBar_IsOn == true)
        {
            m_RightBar_B.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        }

        // MoveOut m_Title1 and m_Title2
        StartCoroutine(HideTitleTextMeshes());
    }
 // Toggle show/hide Details panel
 public void OnToggle_Details()
 {
     if (m_ToggleDetails != null && m_PanelDetails != null)
     {
         if (m_ToggleDetails.isOn == true)
         {
             m_PanelDetails.MoveIn(GUIAnimSystemFREE.eGUIMove.Self);
         }
         else
         {
             m_PanelDetails.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);
         }
     }
 }
Esempio n. 24
0
    // ########################################
    // Toggle button functions
    // ########################################

    #region Toggle Button

    // Toggle TopLeft buttons


    // Toggle BottomLeft buttons
    void ToggleBottomLeft()
    {
        m_BottomLeft_IsOn = !m_BottomLeft_IsOn;
        if (m_BottomLeft_IsOn == true)
        {
            // m_BottomLeft_B moves in
            m_BottomLeft_Rainbow.MoveIn(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        }
        else
        {
            // m_BottomLeft_B moves out
            m_BottomLeft_Rainbow.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        }
    }
Esempio n. 25
0
    // MoveOut m_Title1 and m_Title2
    IEnumerator HideMainButtonObjects()
    {
        yield return(new WaitForSeconds(0.2f));

        // MoveOut
        m_Lvl1.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);
        m_Lvl2.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);
        m_Lvl3.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);
        m_Lvl4.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);
        m_Lvl5.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);
        m_Lvl6.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);
        m_NextChapter.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);
        m_Introduction.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);
        m_Back.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);
    }
 // User clicks on Settings button
 public void OnButton_Settings()
 {
     if (m_PanelSettings != null)
     {
         // Toggle show/hide m_PanelSettings
         if (m_PanelSettings.transform.localScale == new Vector3(0, 0, 0))
         {
             m_PanelSettings.MoveIn(GUIAnimSystemFREE.eGUIMove.Self);
         }
         else
         {
             m_PanelSettings.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);
         }
     }
 }
Esempio n. 27
0
    public void OnButton_Dialog(int llevelnum)
    {
        GUIAnimFREE currentGUI = EventSystem.current.currentSelectedGameObject.GetComponent <GUIAnimFREE> ();

        currentGUI.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);

        // Disable m_Dialog1 for a few seconds
//		StartCoroutine(DisableButtonForSeconds(m_Dialog1.gameObject, 2.5f));
//		StartCoroutine(DisableButtonForSeconds(m_Dialog2.gameObject, 2.5f));
//		StartCoroutine(DisableButtonForSeconds(m_Dialog3.gameObject, 2.5f));
//		StartCoroutine(DisableButtonForSeconds(m_Dialog4.gameObject, 2.5f));
//		StartCoroutine(DisableButtonForSeconds(to_Right.gameObject, 2.5f));
//		StartCoroutine(DisableButtonForSeconds(to_Left.gameObject, 2.5f));

        StartCoroutine(Load_Level(llevelnum));
    }
Esempio n. 28
0
    // MoveOut all primary buttons
    public void HideAllGUIs()
    {
        if (PrimaryButton1_IsOn)
        {
            // MoveOut all primary buttons
            m_PrimaryButton1.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);

            // MoveOut all secondary buttons
            if (m_Button1_IsOn == true)
            {
                m_SecondaryButton1.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
            }

            PrimaryButton1_IsOn = false;
        }
        m_Button1_IsOn = false;
    }
Esempio n. 29
0
    // MoveOut m_Title1 and m_Title2
    IEnumerator HideMainButtonObjects()
    {
        yield return(new WaitForSeconds(0.05f));

        // MoveOut
        m_UpgradePawnButton.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);
        m_UpgradeBishopButton.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);
        m_UpgradeKnightButton.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);
        m_UpgradeRookButton.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);
        m_UpgradeQueenButton.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);
        m_UpgradeKingButton.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);
        m_BackButton.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);

        GUIAnimFREE tmp;

        for (int i = 0; i < f_UseButton.Length; i++)
        {
            tmp = f_UseButton[i].GetComponent <GUIAnimFREE>();
            tmp.MoveOut(GUIAnimSystemFREE.eGUIMove.Self);
        }
    }
 // Re-scale the Particle type buttons
 void UpdateButtonParticleType()
 {
     for (int i = 0; i < m_ParticleTypeList.Length; i++)
     {
         if (i == m_ParticleType)
         {
             if (m_ParticleTypeList[i].m_Buttons.interactable == true)
             {
                 m_ParticleTypeList[i].m_Buttons.interactable = false;
                 GUIAnimFREE pGUIAnimFREE = m_ParticleTypeList[i].m_Buttons.gameObject.GetComponent <GUIAnimFREE>();
                 if (pGUIAnimFREE != null)
                 {
                     pGUIAnimFREE.m_ScaleOut.Enable   = true;
                     pGUIAnimFREE.m_ScaleOut.Time     = 1.5f;
                     pGUIAnimFREE.m_ScaleOut.ScaleEnd = new Vector3(1.25f, 1.25f, 1.25f);
                     pGUIAnimFREE.MoveOut();
                 }
             }
         }
         else
         {
             if (m_ParticleTypeList[i].m_Buttons.interactable == false)
             {
                 m_ParticleTypeList[i].m_Buttons.interactable = true;
                 GUIAnimFREE pGUIAnimFREE = m_ParticleTypeList[i].m_Buttons.gameObject.GetComponent <GUIAnimFREE>();
                 if (pGUIAnimFREE != null)
                 {
                     pGUIAnimFREE.m_ScaleIn.Enable     = true;
                     pGUIAnimFREE.m_ScaleIn.Time       = 1.5f;
                     pGUIAnimFREE.m_ScaleIn.ScaleBegin = new Vector3(1.25f, 1.25f, 1.25f);
                     pGUIAnimFREE.MoveIn();
                 }
             }
         }
     }
 }