Example #1
0
 public void StartWallPlacement(Vector3 position)
 {
     wallStart       = position;
     wallBeingPlaced = Instantiate(wallPrefab, SimManager.instance.world.transform).GetComponent <Wall>();
     wallBeingPlaced.transform.position   = wallStart;
     wallBeingPlaced.transform.localScale = Vector3.zero;
     wallBeingPlaced.BeginPlacement();
     wallStarted = true;
     StartCoroutine(DelayPlacement());
 }