File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
dodge-the-creeps/rust/src Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -46,33 +46,33 @@ impl INode for Main {
46
46
self . player
47
47
. signals ( )
48
48
. hit ( )
49
- . connect_obj ( & main, Self :: game_over) ;
49
+ . connect_other ( & main, Self :: game_over) ;
50
50
51
51
// Connect Hud::start_game -> Main::new_game.
52
52
self . hud
53
53
. signals ( )
54
54
. start_game ( )
55
- . connect_obj ( & main, Self :: new_game) ;
55
+ . connect_other ( & main, Self :: new_game) ;
56
56
57
57
// Connect Main.ScoreTimer::timeout -> Main::on_score_timer_timeout.
58
58
self . score_timer ( )
59
59
. signals ( )
60
60
. timeout ( )
61
- . connect_obj ( & main, Self :: on_score_timer_timeout) ;
61
+ . connect_other ( & main, Self :: on_score_timer_timeout) ;
62
62
63
63
// Connect Main.MobTimer::timeout -> Main::on_mob_timer_timeout.
64
64
self . mob_timer ( )
65
65
. signals ( )
66
66
. timeout ( )
67
- . connect_obj ( & main, Self :: on_mob_timer_timeout) ;
67
+ . connect_other ( & main, Self :: on_mob_timer_timeout) ;
68
68
69
69
// Main.StartTimer::timeout -> Main::on_start_timer_timeout is set up in the Editor's Inspector UI, but could be done here as well,
70
70
// as follows. Note that signal handlers connected via Rust do not need a #[func] annotation, they can remain entirely visible to Godot.
71
71
//
72
72
// self.start_timer()
73
73
// .signals()
74
74
// .timeout()
75
- // .connect_obj (&main, Self::on_start_timer_timeout);
75
+ // .connect_other (&main, Self::on_start_timer_timeout);
76
76
}
77
77
}
78
78
You can’t perform that action at this time.
0 commit comments