// 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);
     }
 }
Esempio n. 3
0
 public void Undo()
 {
     CubePlacer.RemoveCube(position, color);
 }
Esempio n. 4
0
 public void Execute()
 {
     CubePlacer.PlaceCube(position, color, cube);
 }
Esempio n. 5
0
 // Use this for initialization
 void Start()
 {
     cubePlacer = GetComponent <CubePlacer>();
 }
Esempio n. 6
0
 public void OnPointerDown(PointerEventData eventData)
 {
     GameManager.BlockSelected = Block;
     CubePlacer.ChangeBlock(Block);
 }
Esempio n. 7
0
 public void Undo()
 {
     CubePlacer.removeObject(position);
 }
Esempio n. 8
0
 public void Execute()
 {
     CubePlacer.placeShape(position, transform);
 }