예제 #1
0
    public void DoDamage(ProyectileInfo proyectile)
    {
        healthPoints -= proyectile.Damage;

        if (healthPoints > 0)
        {
            return;
        }

        LogsController.Log($"{gameObject.name} died.");
    }
예제 #2
0
 public void SetInfo(ProyectileInfo proyectileInfo)
 {
     this.proyectileInfo = proyectileInfo;
     currentLife         = proyectileInfo.Life;
     spawnDelay          = proyectileInfo.SpawnDelay;
 }