Example #1
0
    public Warp SetupFirstWarp()
    {
        for (int i = 0; i < warps.Length; i++)
        {
            Warp warp = warps[i];
            warp.Generate();
            if (i > 0)
            {
                warp.AlignWith(warps[i - 1]);
            }

            if (i > 1 && !warper.faded)
            {
                warp.GenerateVoidStone(GameMode);
            }
        }

        AlignNextWarpWithOrigin();
        transform.localPosition = new Vector3(0f, -warps[1].CurveRadius);
        return(warps[1]);
    }