public void TriggerCountdown() { ModExplosiveSave explosiveSave = ComponentUtils.GetComponent <ModExplosiveSave>(this); if (explosiveSave is null) { Logger.LogError("Could not trigger countdown. No ModExplosiveSave!"); return; } explosiveSave.TriggerCountdown(explosionDelay); }
public ModExplosiveData(ModExplosiveSave modExplosiveSave) { this.isTriggered = modExplosiveSave.isTriggered; this.timeUntilExplosion = modExplosiveSave.timeUntilExplosion; }