BattleArea.RemoveEnemy C# (CSharp) Méthode

RemoveEnemy() public méthode

public RemoveEnemy ( int index ) : void
index int
Résultat void
    public void RemoveEnemy(int index)
    {
        this.enemyID = ArrayHelper.Remove(index, this.enemyID);
        this.enemyQuantity = ArrayHelper.Remove(index, this.enemyQuantity);
        this.spawnOffset = ArrayHelper.Remove(index, this.spawnOffset);
        this.respawnEnemy = ArrayHelper.Remove(index, this.respawnEnemy);
        this.respawnTime = ArrayHelper.Remove(index, this.respawnTime);
    }

Usage Example

Exemple #1
0
 //Event triggered when killed
 public virtual void OnDeath()
 {
     currentBattleArea.RemoveEnemy(gameObject);
 }