|
@@ -224,10 +224,6 @@ Note that a new instance must be added to the scene using ``add_child()``.
|
|
// We also specified this function name in PascalCase in the editor's connection window.
|
|
// We also specified this function name in PascalCase in the editor's connection window.
|
|
private void OnMobTimerTimeout()
|
|
private void OnMobTimerTimeout()
|
|
{
|
|
{
|
|
- // Note: Normally it is best to use explicit types rather than the `var`
|
|
|
|
- // keyword. However, var is acceptable to use here because the types are
|
|
|
|
- // obviously Mob and PathFollow2D, since they appear later on the line.
|
|
|
|
-
|
|
|
|
// Create a new instance of the Mob scene.
|
|
// Create a new instance of the Mob scene.
|
|
Mob mob = MobScene.Instantiate<Mob>();
|
|
Mob mob = MobScene.Instantiate<Mob>();
|
|
|
|
|