// Toggle m_Bar4
 void ToggleBar4()
 {
     m_Bar4_IsOn = !m_Bar4_IsOn;
     if (m_Bar4_IsOn == true)
     {
         // m_Bar4 moves in
         m_Bar4.PlayInAnims(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
     }
     else
     {
         // m_Bar4 moves out
         m_Bar4.PlayOutAnims(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
     }
 }
 // Toggle m_Button4
 void ToggleButton_4()
 {
     m_Button4_IsOn = !m_Button4_IsOn;
     if (m_Button4_IsOn == true)
     {
         // MoveIn m_SecondaryButton4
         m_SecondaryButton4.PlayInAnims(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
     }
     else
     {
         // MoveOut m_SecondaryButton4
         m_SecondaryButton4.PlayOutAnims(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
     }
 }
Пример #3
0
 // Toggle BottomLeft buttons
 void ToggleBottomLeft()
 {
     m_BottomLeft_IsOn = !m_BottomLeft_IsOn;
     if (m_BottomLeft_IsOn == true)
     {
         // m_BottomLeft_B moves in
         m_BottomLeft_B.PlayInAnims(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
     }
     else
     {
         // m_BottomLeft_B moves out
         m_BottomLeft_B.PlayOutAnims(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
     }
 }
    // MoveIn m_Dialog
    IEnumerator MoveInPrimaryButtons()
    {
        yield return(new WaitForSeconds(1.0f));

        // MoveIn dialogs
        btn_Level1.PlayInAnims(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        btn_Level2.PlayInAnims(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        btn_Level3.PlayInAnims(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        btn_Level4.PlayInAnims(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        btn_Level5.PlayInAnims(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        btn_Level6.PlayInAnims(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);

        // Enable all scene switch buttons
        StartCoroutine(EnableAllDemoButtons());
    }
    // MoveIn all primary buttons
    IEnumerator MoveInPrimaryButtons()
    {
        yield return(new WaitForSeconds(1.0f));

        // MoveIn all primary buttons
        m_PrimaryButton1.PlayInAnims(GUIAnimSystemFREE.eGUIMove.Self);
        m_PrimaryButton2.PlayInAnims(GUIAnimSystemFREE.eGUIMove.Self);
        m_PrimaryButton3.PlayInAnims(GUIAnimSystemFREE.eGUIMove.Self);
        m_PrimaryButton4.PlayInAnims(GUIAnimSystemFREE.eGUIMove.Self);

        m_PrimaryButton5.PlayInAnims(GUIAnimSystemFREE.eGUIMove.Self);

        // Enable all scene switch buttons
        StartCoroutine(EnableAllDemoButtons());
    }
    // ########################################
    // MoveIn/MoveOut functions
    // ########################################

    #region MoveIn/MoveOut

    // Move In m_Title1 and m_Title2
    IEnumerator MoveInTitleGameObjects()
    {
        yield return(new WaitForSeconds(1.0f));

        // Move In m_Title1 and m_Title2
        m_Title1.PlayInAnims(GUIAnimSystemFREE.eGUIMove.Self);
        m_Title2.PlayInAnims(GUIAnimSystemFREE.eGUIMove.Self);

        // MoveIn dialogs
        StartCoroutine(MoveInPrimaryButtons());

        // Enable all scene switch buttons
        // http://docs.unity3d.com/Manual/script-GraphicRaycaster.html
        GUIAnimSystemFREE.Instance.SetGraphicRaycasterEnable(m_Canvas, true);
    }
Пример #7
0
        public void TogglePanel()
        {
            ChangeCam();

            if (!boton.gameObject.activeSelf)
            {
                boton.gameObject.SetActive(true);
                boton.PlayInAnims(GUIAnimSystemFREE.eGUIMove.Children);
                showingPanel = true;
            }
            else
            {
                if (showingPanel)
                {
                    boton.PlayOutAnims(GUIAnimSystemFREE.eGUIMove.Children);
                    ShowPanelUI();
                }
                else
                {
                    boton.PlayInAnims(GUIAnimSystemFREE.eGUIMove.Children);
                }
                showingPanel = !showingPanel;
            }
        }
Пример #8
0
        IEnumerator MoveInPanelAdvanceOfFire(GUIAnimFREE panelAdvanceOfFire)
        {
            if (!PhotonNetwork.IsMasterClient)
            {
                for (int i = 0; i < 4; i++)
                {
                    panelButtons.transform.GetChild(i).gameObject.SetActive(false);
                }
            }
            yield return(new WaitForSeconds(1.8f));

            panelAdvanceOfFire.gameObject.SetActive(true);
            panelAdvanceOfFire.PlayInAnims(GUIAnimSystemFREE.eGUIMove.Self);
            ScriptEfectosSonido.PlayTurnFireSound();
            StartCoroutine(MoveOutPanelAdvanceOfFire(panelAdvanceOfFire));
        }
Пример #9
0
    // MoveIn all primary buttons
    IEnumerator MoveInButton()
    {
        yield return(new WaitForSeconds(1.0f));

        // MoveIn all primary buttons
        buttonStart.PlayInAnims(GUIAnimSystemFREE.eGUIMove.Self);
        textStart.PlayInAnims(GUIAnimSystemFREE.eGUIMove.Self);
        pressStartText.PlayInAnims(GUIAnimSystemFREE.eGUIMove.Self);

        yield return(new WaitForSeconds(1.0f));

        textLang.PlayInAnims(GUIAnimSystemFREE.eGUIMove.Self);
        langDropdown.PlayInAnims(GUIAnimSystemFREE.eGUIMove.Self);

        // Enable all scene switch buttons
        StartCoroutine(EnableAllDemoButtons());
    }
Пример #10
0
 // Toggle RightBar buttons
 void ToggleRightBar()
 {
     m_RightBar_IsOn = !m_RightBar_IsOn;
     if (m_RightBar_IsOn == true)
     {
         // m_RightBar_A moves out
         m_RightBar_A.PlayOutAnims(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
         // m_RightBar_B moves in
         m_RightBar_B.PlayInAnims(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
     }
     else
     {
         // m_RightBar_A moves in
         m_RightBar_A.PlayInAnims(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
         // m_RightBar_B moves out
         m_RightBar_B.PlayOutAnims(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
     }
 }
Пример #11
0
    // ########################################
    // Funciones MonoBehaviour
    // ########################################

    #region MonoBehaviour

    void Start()
    {
        bkgr.PlayInAnims(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        panelSettings.PlayInAnims(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        buttonOk.PlayInAnims(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        buttonBck.PlayInAnims(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        mapTxt.PlayInAnims(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        map1.PlayInAnims(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        map2.PlayInAnims(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        map3.PlayInAnims(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
        // SINGLETON
        if (sharedInstance == null)
        {
            sharedInstance = this;
            DontDestroyOnLoad(sharedInstance);
        }
        else
        {
            Destroy(gameObject);
        }
        GameManager.sharedInstance.maxNumbersActions = 2;
        GameManager.sharedInstance.limitPlayers      = 1;
    }