if (bomb.activated == true){ timeLeft -= Time.deltaTime; if (timeLeft < 0) { bomb.detonate(); }}public bool paused;public void PauseGame(){ if (Input.GetKeyUp (KeyCode.Space)) { if(paused){ Time.timeScale = 1; paused = false; } else { Time.timeScale = 0; paused = true; } }}using UnityEngine.SceneManagement;SceneManager.LoadScene(SceneManager.GetActiveScene().name);Note at the end of the statement that you can use .name or .buildIndex
Faster
if (other.gameObject.CompareTag("Player")Slower
if (other.gameObject.tag == "Player")Faster
if (!System.Object.ReferenceEquals(gameObject, null))Slower
if (gameObject != null)