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