Friday, June 13, 2014

Simple Platformer Day 07

Never has easy as it could be, but I learned how to define and call static functions from different scripts today.
 GM_Cs.addScore();

GetComponent only works on components that are attached to the same object.
FindObjectByName calls for object if you already know its name.

Still unsure how to use the above two to refer to non-static functions between scripts.  Need to learn eventually.

I got the score to work and to add up.  Next up: figuring out basic GUI display for the score.

No comments:

Post a Comment