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 contains 1 reply, has 2 voices, and was last updated by  Cristina Rocha 1 year, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5650

    What 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.

    Simon (Darkside) Jackson
    @SimonDarksideJ

    #10510

    Cristina Rocha

    Hi,

    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

Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘Mastering Unity 2D Game Development’ is closed to new topics and replies.