Exemple #1
0
    void Start()
    {
        stage = gameObject.GetComponent<Stage> ();
        size = stage.gridSize*2;
        tiles = new Tile[size, size];
        originOff = size / 4;
        origin = AddTile (originOff, originOff, 0);
        bump = GetComponent<AudioSource> ();

        // Overlay
        overlay = gameObject.GetComponent<Overlay>();
        overlay.overlayCoords = overlay.RedSquareOverlay();
        //overlay.DrawOverlay();
    }