Example #1
0
    public void SlideUp(string stateName)
    {
        SoundManager.GetInstance().ResumeAllSounds();
        SoundManager.GetInstance().PlaySFX(SoundManager.SOUND_BUTTON);
        GameManager.SetPauseGame(false);

        _instance.SetCurrentState(stateName);
        if (_instance._currentState != null)
        {
            iTween.MoveTo(_instance._currentState, new Vector3(0f, 10.2f, 0f), 0.3f);
        }
    }