Advertisement
Guest User

Untitled

a guest
Aug 1st, 2015
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. // Class declaration
  2. public class Worm : Object
  3. {
  4. int score;
  5. }
  6.  
  7. // Connecting to signal
  8. var worm = new Worm ();
  9. worm.notify["score"].connect ((s, p) => {
  10. stderr.printf("Test\n");
  11. });
  12. // Trying to change the property right after connecting
  13. worm.score++;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement