// Start is called before the first frame update void Start() { if (InputManager._inst != null) { iManager = InputManager._inst; } if (DeathScreenHandler._inst != null) { endScreen = DeathScreenHandler._inst; } }
void Awake() { // Confirm singleton instance is active if (_inst == null) { _inst = this; // DontDestroyOnLoad(this); } else if (_inst != this) { GameObject.Destroy(this.gameObject); } if (pStats == null) { pStats = FindObjectOfType <PlayerStatusHandler>(); } }