示例#1
0
    public void OnCollisionEnter(Collision collision)
    {
        if (collision.collider.CompareTag("killZone"))
        {
            _moveController.OnCollide();
            _shootController.OnCollide();

            _arena.ArenaReset();
            _visual.GetComponent <TrailRenderer>().Clear();
            _rigidBody.velocity = Vector3.zero;
        }
    }