Esempio n. 1
0
    void LoadBackgroundQuad()
    {
        var go = PuzzleBackground.Create(Data.puzzleObject, Data.playgroundBounds);

        go.layer = Layers.Debris;
        go.transform.SetParent(Data.transform, true);
    }
Esempio n. 2
0
    void InitBackground(bool takingInitialSnapshot)
    {
        Vector2 pos = graph.size;

        pos = pos / 2f;
        var bounds = Utils.CalculateBounds(pos, ssCamera.aspect, ssCamera.orthographicSize);

        backgroundObject       = PuzzleBackground.Create(graph, bounds, takingInitialSnapshot, takingInitialSnapshot);
        backgroundObject.layer = Layers.Snapshot;
        backgroundObject.transform.SetParent(transform, true);
    }