Place on Page*:* Using + click on Windows or + click on the Mac, select only the child Text GameObjects from every Grid Space GameObject.
Should Be: Using Ctrl + click on Windows or Command + click on the Mac…
AND…
Place on Page: buttonList.GetComponentInParent().SetGameControllerReference(this);
Should Be: buttonList.GetComponentInParent****().SetGameControllerReference(this);
Found under bullet: Add code to check each item in the Button List and set the GameController reference in the GridSpace component on the parent GameObject. >> It is correct in the final script review but missing in the walk through.
Hi, I’m having a problem fairly early on - right after adding the first script, I can’t set up all the references. I’m using Version 5.3.5f1, so I don’t know if this is a problem. There’s no space for dragging and dropping the ‘Grid Space’ and ‘Text’ GameObjects under the Button component, only under the script; also no Player Side property. Furthermore, ‘GridSpace’ is unavailable from the function drop-down menu even though I’ve added the GridSpace script under the Button component.
PROBLEM SOLVED - I just needed to Add Component > Scripts > GridSpace and then I was able to continue normally
I am having a similar problem as Ithalendra. I already ran through the tutorial previously with no problems I couldn’t overcome (in an earlier build of unity) but while going through it a second time (using 5.3.5f1) I am now getting stuck.
Problem 1: On Step 4 “Foundation Game Play” i encounter my first issue in the basic script. For some reason my monodevelop throws an error on “button.interactable = false” - ‘Button’ does not contain a definition for ‘interactable’ and no extension method ‘interactable’ accepting a first argument of type ‘Button’ could be found (are you missing a using directive or an assembly reference?)'.
Problem 2: To continue i commented the offending line, and encountered my second issue. When attempting to
Select the Grid Space prefab in the Project Window.
With the Grid Space prefab selected,
… drag the Grid Space prefab onto the Button property
I cannot drag the Grid Space prefab onto the Button property. I can move the Text in to the Button Text field without an issue, but the Button field refuses to update whether I use drag, or select it manually!
I’m not sure if it’s my version of Unity or the Maker’s version, but creating a script, and dragging it to OnClick, does not allow me to select the GridSpace script from the function list. I had to Add Componenet → New Script → GridSpace.cs
Great tutorial! I’ve finished it and even added a running score and lines which go through the three winning symbols. If I knew how I would upload my version
what a great tutorial. exactly what I needed to jump-start my personal project. Thank you! These kinds of write-ups make it easy for me to recommend unity to everyone I meet that is interested in starting out as a developer (gaming or otherwise)
I have a problem; I understand what the piece of code below does in game because I see what it does, but, I don’t understand its syntax. Could someone explain it to me, please? Thank you!
The syntax is: a variable on the left hand side is equal to the value returned from the right hand side based in the comparison done at the start of the right hand side. I. The parentheses there is a true / false comparison. The ? Indicates what type of statement or expression this is, and based on what is returned from the comparison, the value of the variable is set to either on or the other value after the ?. If the comparison returns true, the value of the variable is set to the first value, if it’s false it is set to the value following the :.