Exemple #1
0
    protected override void OnTriggerEnter(Collider other)
    {
        if (other.gameObject.layer == 9)
        {
            TakeOverBehaviour.TakeOver(other.gameObject);
        }

        Invoke("Kill", 0.02f);
        TimeBehaviour.EndSlowMotion();
    }
Exemple #2
0
    private void CheckTimer()
    {
        _switchTimer += Time.deltaTime;

        if (_switchTimer >= _switchTime)
        {
            IsSwitching = false;
            TimeBehaviour.EndSlowMotion();
            _switchTimer = 0.0f;
            _throwKnife  = false;
        }
    }
Exemple #3
0
 private void TriggerGameOver()
 {
     TimeBehaviour.EndSlowMotion();
     SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
 }