void Start()
 {
     line         = GetComponent <LineRenderer> ();
     line.enabled = false;
     blocksInScene.Add(new int3(0, 0, 0), new blockData(blocktypes [0], new int3(0, 0, 0), 0, startCube));
     startCube.GetComponent <Renderer> ().material.color = blocktypes [0].color;
     indicatorMaterial = indicator.GetComponent <Renderer> ().material;
     RefreshDisplay();
     cameraOffset     = transform.InverseTransformVector(transform.position);
     originalRotation = transform.rotation;
     currentDirection = 1;
     instance         = this;
 }
Exemplo n.º 2
0
 public void Remove()
 {
     Levelmaker.RemoveLevelLine(gameObject);
 }