AbstractWeapon

AbstractWeapon provides methods that allow you to shoot projectiles. EvoWeapon class inherits from AbstractWeapon and has methods for saving genomes.

classDiagram
    direction UL
    AbstractWeapon <|-- EvoWeapon : Inherits
    AbstractWeapon <|-- DemoWeapon : Inherits
    AbstractWeapon <|-- GameWeapon : Inherits
    class AbstractWeapon{
        +Fire()
        +FireMultiShot()
        +FireBurst()
    }
    class EvoWeapon{
        +SaveFunc()
        +LoadFunc()
        +EvaluateGenome()
    }

Properties

Properties that you will need to assign in the inspector.

Property Type Description
WeaponSO WeaponParamsSO Contains weapon parameters and genome. It defines the weapon.
ProjectilePrefab Projectile Projectile prefab that will be fired by the weapon.
CoordinateSystemPrefab CoordinateSystem Coordinate system prefab that will be the parent of projectiles.

Back to top

Page last modified: Jun 28 2024 at 04:00 AM.