Super Bomber Kit
Search Results for

    Show / Hide Table of Contents

    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
    object
    BasicEnemy.DirectionStat
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: BomberDogs.Enemies
    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
    public Vector2 direction
    Field Value
    Type Description
    Vector2
    | Edit this page View Source

    usedTimes

    How many times this direction was used

    Declaration
    public int usedTimes
    Field Value
    Type Description
    int
    • Edit this page
    • View Source
    In this article
    Back to top