// Use this for initialization void Start() { testText.SetActive(false); excWriter = GetComponent <ExcelWriter>(); inputField = inputFieldObject.transform.Find("Text").GetComponent <Text>(); cubePlacer = GetComponent <CubePlacer>(); changeScript = GetComponent <ChangeScript>(); expRand = GetComponent <ExpRandomer>(); place += start; span += place; change += span; Debug.Log(inputField.text); }
// Use this for initialization void Start() { if (dirFolderName == null) { dirFolderName = "Untitled"; } cubePlacer = (CubePlacer)GameObject.Find("SoftwareManager").GetComponent <CubePlacer>(); areaText = InputArea.transform.FindChild("Text").GetComponent <Text>(); if (!System.IO.Directory.Exists(@"Excels")) { System.IO.Directory.CreateDirectory(@"Excels"); } if (!System.IO.Directory.Exists(@"Excels/" + dirFolderName)) { System.IO.Directory.CreateDirectory(@"Excels/" + dirFolderName); } }
public void Undo() { CubePlacer.RemoveCube(position, color); }
public void Execute() { CubePlacer.PlaceCube(position, color, cube); }
// Use this for initialization void Start() { cubePlacer = GetComponent <CubePlacer>(); }
public void OnPointerDown(PointerEventData eventData) { GameManager.BlockSelected = Block; CubePlacer.ChangeBlock(Block); }
public void Undo() { CubePlacer.removeObject(position); }
public void Execute() { CubePlacer.placeShape(position, transform); }