C# Class UnlimitedShooter, SlashRunner

Represents a projectile shooter with a cooldown on how often it can shoot.
Inheritance: Shooter
Afficher le fichier Open project: matthewAURA/SlashRunner

Méthodes publiques

Свойство Type Description
cooldown double
shotPrefab GameObject

Méthodes publiques

Méthode Description
Shoot ( ) : void

Shoots the projectile and restarts the cooldown if the cooldown is ready.

Start ( ) : void
Update ( ) : void

Method Details

Shoot() public méthode

Shoots the projectile and restarts the cooldown if the cooldown is ready.
public Shoot ( ) : void
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

Property Details

cooldown public_oe property

Used for keeping track of how often an object could shoot.
public double cooldown
Résultat double

shotPrefab public_oe property

Prefab that represents the projectile.
public GameObject shotPrefab
Résultat GameObject