A simple class used to spawn snake food in Feel's Snake demo scene.
More...
|
| SnakeFood | SnakeFoodPrefab |
| | the food prefab to spawn
|
| int | AmountOfFood = 3 |
| | the maximum amount of food in the scene
|
| Vector2 | MinRandom = new Vector2(0.1f, 0.1f) |
| | the minimum coordinates to spawn at (in viewport units)
|
| Vector2 | MaxRandom = new Vector2(0.9f, 0.9f) |
| | the maximum coordinates to spawn at (in viewport units)
|
|
| virtual void | Start () |
| | On start, instantiates food.
|
A simple class used to spawn snake food in Feel's Snake demo scene.
◆ DetermineSpawnPosition()
| virtual Vector3 MoreMountains.Feel.SnakeFoodSpawner.DetermineSpawnPosition |
( |
| ) |
|
|
virtual |
Determines a valid position at which to spawn food.
- Returns
◆ Start()
| virtual void MoreMountains.Feel.SnakeFoodSpawner.Start |
( |
| ) |
|
|
protectedvirtual |
On start, instantiates food.
◆ _mainCamera
| Camera MoreMountains.Feel.SnakeFoodSpawner._mainCamera |
|
protected |
◆ AmountOfFood
| int MoreMountains.Feel.SnakeFoodSpawner.AmountOfFood = 3 |
the maximum amount of food in the scene
◆ Foods
| List<SnakeFood> MoreMountains.Feel.SnakeFoodSpawner.Foods |
|
protected |
◆ MaxRandom
| Vector2 MoreMountains.Feel.SnakeFoodSpawner.MaxRandom = new Vector2(0.9f, 0.9f) |
the maximum coordinates to spawn at (in viewport units)
◆ MinRandom
| Vector2 MoreMountains.Feel.SnakeFoodSpawner.MinRandom = new Vector2(0.1f, 0.1f) |
the minimum coordinates to spawn at (in viewport units)
◆ SnakeFoodPrefab
| SnakeFood MoreMountains.Feel.SnakeFoodSpawner.SnakeFoodPrefab |
The documentation for this class was generated from the following file: