This class handles Feel's Snake demo's food objects, that the snake has to eat to score points
More...
|
void | OnTriggerEnter2D (Collider2D other) |
| When this food gets eaten, we play its eat feedback, and start moving it somewhere else in the scene More...
|
|
virtual IEnumerator | MoveFood () |
| Moves the food to another spot More...
|
|
This class handles Feel's Snake demo's food objects, that the snake has to eat to score points
◆ MoveFood()
virtual IEnumerator MoreMountains.Feel.SnakeFood.MoveFood |
( |
| ) |
|
|
protectedvirtual |
Moves the food to another spot
- Returns
◆ OnTriggerEnter2D()
void MoreMountains.Feel.SnakeFood.OnTriggerEnter2D |
( |
Collider2D |
other | ) |
|
|
protected |
When this food gets eaten, we play its eat feedback, and start moving it somewhere else in the scene
- Parameters
-
◆ _snake
Snake MoreMountains.Feel.SnakeFood._snake |
|
protected |
◆ AppearFeedback
MMFeedbacks MoreMountains.Feel.SnakeFood.AppearFeedback |
a feedback to play when food appears
◆ EatFeedback
a feedback to play when food gets eaten
◆ Model
GameObject MoreMountains.Feel.SnakeFood.Model |
the food's visual representation
◆ OffDelay
float MoreMountains.Feel.SnakeFood.OffDelay = 1f |
a duration (in seconds) during which the food is inactive before moving it to another position
◆ Spawner
The documentation for this class was generated from the following file:
- F:/Github/Store/Feel/Assets/Feel/FeelDemos/Snake/Scripts/SnakeFood.cs