Class BasicEnemy.DirectionStat
Stores statistics of the random direction. This exists because the unity random is very biased, it often hits the same directions. With these statistics I give priority to the least used directions.
Inheritance
BasicEnemy.DirectionStat
Assembly: Assembly-CSharp.dll
Syntax
public class BasicEnemy.DirectionStat
Constructors
|
Edit this page
View Source
DirectionStat(Vector2)
Declaration
public DirectionStat(Vector2 direction)
Parameters
| Type |
Name |
Description |
| Vector2 |
direction |
|
Fields
|
Edit this page
View Source
direction
Declaration
Field Value
|
Edit this page
View Source
usedTimes
How many times this direction was used
Declaration
Field Value