protected override void OnTriggerEnter(Collider other) { if (other.gameObject.layer == 9) { TakeOverBehaviour.TakeOver(other.gameObject); } Invoke("Kill", 0.02f); TimeBehaviour.EndSlowMotion(); }
private void CheckTimer() { _switchTimer += Time.deltaTime; if (_switchTimer >= _switchTime) { IsSwitching = false; TimeBehaviour.EndSlowMotion(); _switchTimer = 0.0f; _throwKnife = false; } }
private void TriggerGameOver() { TimeBehaviour.EndSlowMotion(); SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex); }