You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/gameobjects/components/PathFollower.js
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -110,7 +110,7 @@ var PathFollower = {
110
110
* @param {Phaser.Curves.Path} path - The Path this PathFollower is following. It can only follow one Path at a time.
111
111
* @param {(number|Phaser.Types.GameObjects.PathFollower.PathConfig|Phaser.Types.Tweens.NumberTweenBuilderConfig)} [config] - Settings for the PathFollower.
112
112
*
113
-
* @return {Phaser.GameObjects.PathFollower} This Game Object.
113
+
* @return {this} This Game Object.
114
114
*/
115
115
setPath: function(path,config)
116
116
{
@@ -142,7 +142,7 @@ var PathFollower = {
142
142
* @param {boolean} value - Whether the PathFollower should automatically rotate to point in the direction of the Path.
143
143
* @param {number} [offset=0] - Rotation offset in degrees.
144
144
*
145
-
* @return {Phaser.GameObjects.PathFollower} This Game Object.
145
+
* @return {this} This Game Object.
146
146
*/
147
147
setRotateToPath: function(value,offset)
148
148
{
@@ -181,7 +181,7 @@ var PathFollower = {
181
181
* @param {(number|Phaser.Types.GameObjects.PathFollower.PathConfig|Phaser.Types.Tweens.NumberTweenBuilderConfig)} [config={}] - The duration of the follow, or a PathFollower config object.
182
182
* @param {number} [startAt=0] - Optional start position of the follow, between 0 and 1.
183
183
*
184
-
* @return {Phaser.GameObjects.PathFollower} This Game Object.
0 commit comments