コード例 #1
0
    public void unlockMedal(int medal_id)
    {
        // create the component
        io.newgrounds.components.Medal.unlock medal_unlock = new io.newgrounds.components.Medal.unlock();

        // set required parameters
        medal_unlock.id = medal_id;

        // call the component on the server, tell it to fire onMedalUnlocked() when done
        medal_unlock.callWith(ngio_core);
        Debug.Log("Sent a message to the server to unlock a medal");
    }
コード例 #2
0
 void unlockMedal(int medal_id)
 {
     io.newgrounds.components.Medal.unlock medal_unlock = new io.newgrounds.components.Medal.unlock();
     medal_unlock.id = medal_id;
     medal_unlock.callWith(ngio_core, onMedalUnlocked);
 }