Exemple #1
0
    public void ZoomOut()
    {
        _mainCamera.gameObject.GetComponent <Camera2DTweener>().TweenTo(new Vector3(6f, -2f, -2.3f), 31f, 0.5f, this.gameObject);

        // Room shadow tweening
        GameObject shadow = GameObject.Find("Sombras/Sombra_" + _room) as GameObject;

        if (shadow)
        {
            ShadowController sc = shadow.GetComponent <ShadowController>();
            sc.ShadowOut();
        }

        _zoomed = ZoomState.Zooming;
    }