示例#1
0
    private void OnCollisionEnter(Collision other)
    {
        if (other.collider.CompareTag("Killbox"))
        {
            spawner.RemoveBallInPlay();
            PhotonNetwork.Destroy(gameObject);
        }

        if (other.collider.CompareTag("Player"))
        {
            ApplyBounceForce(other.transform.position);
        }
    }