![]() |
Feel 5.9.1
The best way to improve your game's feel and make it extra juicy
|
A class used to handle Feel's Snake demo's snake bodyparts. More...
Public Member Functions | |
| virtual void | Eat (float intensity) |
| Called when the snake eats a new food. | |
| virtual void | New () |
| Called when instantiating a new body part. | |
Public Attributes | |
| MMPositionRecorder | TargetRecorder |
| a position recorder this body part will look at to know where to go to | |
| MMFeedbacks | EatFeedback |
| a feedback to play when food gets eaten | |
| MMFeedbacks | NewFeedback |
| a feedback to play when this part appears | |
| int | Offset = 20 |
| int | Index = 0 |
Protected Member Functions | |
| virtual void | Awake () |
| On awake we store our collider and enable it after a delay. | |
| virtual IEnumerator | ActivateCollider () |
| Activates this part's collider. | |
| void | Update () |
| On update, we move to the recorded position of our predecessor. | |
Protected Attributes | |
| Snake | _snake |
|
protectedvirtual |
Activates this part's collider.
|
protectedvirtual |
On awake we store our collider and enable it after a delay.
|
virtual |
Called when the snake eats a new food.
| intensity |
|
virtual |
Called when instantiating a new body part.
|
protected |
On update, we move to the recorded position of our predecessor.
|
protected |
| MMFeedbacks MoreMountains.Feel.SnakeBodyPart.EatFeedback |
a feedback to play when food gets eaten
| int MoreMountains.Feel.SnakeBodyPart.Index = 0 |
| MMFeedbacks MoreMountains.Feel.SnakeBodyPart.NewFeedback |
a feedback to play when this part appears
| int MoreMountains.Feel.SnakeBodyPart.Offset = 20 |
| MMPositionRecorder MoreMountains.Feel.SnakeBodyPart.TargetRecorder |
a position recorder this body part will look at to know where to go to