Upd Edition – Errata – Mastering Unity 2D Game Development (post October 2014)
Home › Forums › Books › Mastering Unity 2D Game Development › Upd Edition – Errata – Mastering Unity 2D Game Development (post October 2014)
- This topic has 1 reply, 2 voices, and was last updated 4 years, 5 months ago by
Cristina Rocha.
-
AuthorPosts
-
November 28, 2014 at 9:47 pm #5650
Simon (darkside) Jackson
KeymasterWhat follows are any errata that somehow by chance managed to get through the second round of reviews (we are only human it seems)
Page
38
Error
The third line of code in the first code snippet on this page is incorrectly stated as:
string Faction;
Correction
It should be as follows:
public string Faction;
Page
79
Error
Additional line of code missing from Awake method, should initialise the “anim” property
Correction
The line from Page 84 should be included at the end of the Awake method on Page 79 as follows:
anim = (Animator)playerSprite.GetComponent(typeof(Animator));
Page
390
Error
The second sentence in the fourth paragraph on this page is:
First, we will create a helper function to do the serialization for us, so create a new script called SerializationHelper in Assets\Scripts\Classes and replace its contents with the following code:
Correction
It should read as follows:
First, we will create a helper function to do the serialization for us, so create a new script called SerializerHelper in Assets\Scripts\Classes and replace its contents with the following code:
Page
390
Error
The third line of code in the first code snippet on this page is:
public class SerilizerHelper {
Correction
The name of the class should be as follows:
public class SerializerHelper {
Page
411
Error
The second sentence in the first paragraph on this page currently states:
So, open the SerializationHelper script and add the following method:
Correction
This should read as follows:
So, open the SerializerHelper script and add the following method:
Page
412
Error
The second sentence in the first paragraph on this page is:
If you build for Windows 8 now, you will still have one error that remains in the SerializationHelper script
Correction
This should read as follows:
If you build for Windows 8 now, you will still have one error that remains in the SerializerHelper script
Page
415
Error
Missing word “event” in the code line
public static EventHandler PurchaseRequested;
Correction
The code line from Page 415 should be as follows:
public static event EventHandler PurchaseRequested;
Without the “event” keyword the rest of the code lines will not work. Event is the hook that exposes an event to the Widows Platform, An EventHandler is a signature for an event.
-
This topic was modified 6 years, 3 months ago by
Simon (darkside) Jackson.
-
This topic was modified 6 years, 1 month ago by
Simon (darkside) Jackson.
-
This topic was modified 6 years, 1 month ago by
Simon (darkside) Jackson.
-
This topic was modified 5 years, 7 months ago by
Simon (darkside) Jackson.
-
This topic was modified 5 years, 7 months ago by
Simon (darkside) Jackson.
Simon (Darkside) Jackson
@SimonDarksideJSeptember 28, 2016 at 8:01 am #10510Cristina Rocha
GuestHi,
I’m really liking your book. Just reporting a small glitch:
- On page 112 (kindle edition) your code snippet is missing a “}” to close the if statement for the Travel Button.
Best Regards,
— Cristina
-
This topic was modified 6 years, 3 months ago by
-
AuthorPosts
- The forum ‘Mastering Unity 2D Game Development’ is closed to new topics and replies.