Exemple #1
0
    public void Clear()
    {
        m_textMesh.text  = "";
        m_textMesh.color = Color.clear;

        m_textBackground.color     = Color.clear;
        m_portraitBackground.color = Color.clear;
        m_portraitRenderer.color   = Color.clear;
        m_endPageSymbol.color      = Color.clear;
        m_endTextSymbol.color      = Color.clear;
        m_optionsBackground.color  = Color.clear;

        m_menuCursor.ClearOptions();
        var cursorSprite = m_menuCursor.GetComponent <SpriteRenderer>();

        if (cursorSprite != null)
        {
            cursorSprite.color = Color.clear;
        }
        m_menuCursor.enabled = false;

        var children = new List <GameObject>();

        foreach (Transform child in m_optionsBackground.transform)
        {
            children.Add(child.gameObject);
        }
        children.ForEach(child => Destroy(child));

        IsShowing            = false;
        m_portraitLabel.text = "";
        m_timeElapsed        = 0.0f;
    }