Game Development Reference
Note that you can still use and test your OpenFeint interface without
its having completed the review process. As long as you have all the
IDs and keys you are ready to go.
Ensure that you take note of the leaderboard and achievement IDs as
you will need these in the code to send scores to the leaderboard
and unlock achievements.
Step 20. To explore further the functionality of the OpenFeint
interface, modify the OFInterface script to that in Listing 8.18 .
Remember to replace the three leaderboard IDs and achievement
ID with your own.
Listing 8.18 Integrating Further OpenFeint Features
into an App
var score: int = 0;
var scoreStyle: GUIStyle;
private var medal = false;
GUI.Label(new Rect(200,10,200,80),"Score: " + score,
if (GUI.Button(new Rect(10,10,150,50),
else if (!OF.isUserLoggedIn())
GUI.Button(new Rect(10,10,150,50), "Initialising...");
if (GUI.Button(new Rect(10,70,150,50), "Leaderboard"))