Ejemplo n.º 1
0
    public void ShowGameplayCanvas(bool showed)
    {
        if (showed)
        {
            gameplayCanvas.alpha          = 1;
            gameplayCanvas.interactable   = true;
            gameplayCanvas.blocksRaycasts = true;
            AudioManager.Instance.Music.GoToGameMusic();
        }
        else
        {
            DOVirtual.DelayedCall(1.0f, () => {
                gameplayCanvas.alpha          = 0;
                gameplayCanvas.interactable   = false;
                gameplayCanvas.blocksRaycasts = false;
            });
        }

        DOVirtual.DelayedCall(timeBeforePlayerPanelPopIn, () => { player1.PopIn(showed); });
        DOVirtual.DelayedCall(timeBeforePlayerPanelPopIn, () => { player2.PopIn(showed); });
        DOVirtual.DelayedCall(timeBeforeQuickMenuPopIn, () => { DisplayQuickMenuButtons(showed); });
    }