Ejemplo n.º 1
0
    void spawnTreasure(Point location)
    {
        Vector3        worldStart = LevelManager.Instance.worldStart;
        float          tileSize   = LevelManager.Instance.TileSize;
        TreasureScript ts         = Instantiate(TreasurePrefab).GetComponent <TreasureScript>();

        ts.setup(location, new Vector3(worldStart.x + (tileSize * location.X), worldStart.y - (tileSize * location.Y), this.zIndex), BubbleLayer);
        Treasures.Add(ts);
    }