void InstantiateValues() { WallCreationScript = WallPre.GetComponent <WallCreation>(); WallCreationScript.cubeScale.x = TileSizeX; WallCreationScript.cubeScale.y = TileSizeY; WallCreationScript.QuadScale.x = WallSizeX; WallCreationScript.QuadScale.y = WallSizeY; WallCreationScript.RowWidth = RowWidth; WallCreationScript.ColoumnWidth = ColoumnWidth; RowWidth = RowWidthS.value; tRowWidth.text = " " + RowWidthS.value; ColoumnWidth = ColoumnWidthS.value; tColoumnWidth.text = " " + ColoumnWidthS.value; WallSizeX = WallSizeXS.value; tWallSizeX.text = " " + WallSizeXS.value; WallSizeY = WallSizeYS.value; tWallSizeY.text = " " + WallSizeYS.value; TileSizeX = TileSizeXS.value; tTileSizeX.text = " " + TileSizeXS.value; TileSizeY = TileSizeYS.value; tTileSizeY.text = " " + TileSizeYS.value; }
// Use this for initialization void Start() { canRepair = false; blockT2 = false; gateT1 = false; addOre = GameObject.Find("UIManager"); uiscript = addOre.GetComponent<UIManagerScript> (); getWallScript = GameObject.Find("WallCreationManager").GetComponent<WallCreation>(); rend = GetComponent<Renderer>(); rend.enabled = false; canPlace = false; }