Exemplo n.º 1
0
    void Awake()
    {
        _background     = this.transform.Find("Polaroid/DestinationScene");
        _foreground     = this.transform.Find("Polaroid/DestinationScene/DestinationForeground");
        m_PolaroidGroup = this.transform.Find("Polaroid").GetComponent <GroupHider>();

        m_Masks = gameObject.AddComponent <MaskOptimizer>();
    }
Exemplo n.º 2
0
    void Awake()
    {
        _stampsHolder     = this.transform.Find("StampsHolder/Mask");
        _closeBtn         = this.transform.Find("Close/closeButton");
        _undoBtn          = this.transform.Find("Grid/undoButton");
        _gridBtn          = this.transform.Find("Grid/closeButton");
        m_StampRevealRoot = this.transform.Find("StampRevealHolder");
        m_Controls        = this.transform.Find("stampControls");
        m_DragRegionMask  = this.transform.Find("hitArea");

        m_Masks = gameObject.AddComponent <MaskOptimizer>();
    }