If using Visual Studio of Visual Code there are lines to show bracket matching and in the image light gray lines.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class mapgenorator : MonoBehaviour
{
public GameObject Prevceiling;
public GameObject Prevfloor;
public GameObject ceiling;
public GameObject floor;
public GameObject player;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
if (player.transform.position.x > floor.transform.position.x)
{
var tempCeiling = Prevceiling;
var tempFloor = Prevfloor;
Prevceiling = ceiling;
Prevfloor = floor;
tempCeiling.transform.position += new Vector3(54, 0, 0);
tempFloor.transform.position += new Vector3(54, 0, 0);
ceiling = tempCeiling;
floor = tempFloor;
}
}
If using Visual Studio of Visual Code there are lines to show bracket matching and in the image light gray lines.
Hi @Barrett, Carl ,
I think you are missing closing } at the end of your program. Thanks!
If you like a different background color than the default white, like I like a grey background, it helps my eye, then you can change the color of the structure grid lines too.
https://dailydotnettips.com/how-to-customize-structure-guide-lines-colors-in-visual-studio-2017/