Simon (darkside) Jackson
As an update to the Unity 5 support, some people have reported issues with Unity upgrading the Code from the book, thankfully this only affects 2 files.
If Unity can’t (Won’t) upgrade code, you will see “Unity Upgrading” issues in the console log, these are very easy to resolve as follows:
- In the FollowCamera script on lines 36/37 replace “camera.ViewportToWorldPoint” with “GetComponent<Camera>().ViewportToWorldPoint”
In the MapMovement script, replace references to “this.collider2D.enabled” with “this.GetComponent<Collider2D>().enabled”
Apologies for not noticing these sooner, just something that showed up in later 5.x versions.
Happy RPG’ing 😀
Simon (Darkside) Jackson