Свойство | Тип | Описание | |
---|---|---|---|
currentPosition | Vector3 | ||
goBack | bool | ||
horizontalEnabled | bool | ||
slowSpeed | float | ||
speed | float |
Метод | Описание | |
---|---|---|
AutoMove ( ) : void |
Set goback to true which should move the player back to his origonal position
|
|
Move ( float Horizontal, float Vertical ) : void |
Increases the velocity of the player by the provided values.
|
Метод | Описание | |
---|---|---|
Start ( ) : void |
initializes variables that need to be used by this script.
|
|
Update ( ) : void |
if goback is true, then it will move it back to its origonal position.
|
public Move ( float Horizontal, float Vertical ) : void | ||
Horizontal | float | |
Vertical | float | |
Результат | void |