private void disableInteraction() { for (var i = 0; i < colliders.Length; i++) { colliders[i].enabled = false; } objectActions.BreakPull(); registerTile.UpdateTileType(TileType.None); objectActions.allowedToMove = false; objectActions.isPushable = false; }
public override void onDeathActions() { objectActions.BreakPull(); var delay = 0f; switch (LastDamageType) { case DamageType.BRUTE: delay = 0.1f; break; case DamageType.BURN: delay = Random.Range(0.2f, 2f); break; //surprise } StartCoroutine(explodeWithDelay(delay, LastDamagedBy)); // Debug.Log("FuelTank ded!"); }