예제 #1
0
        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);
        }
예제 #2
0
 public ModExplosiveData(ModExplosiveSave modExplosiveSave)
 {
     this.isTriggered        = modExplosiveSave.isTriggered;
     this.timeUntilExplosion = modExplosiveSave.timeUntilExplosion;
 }