Esempio n. 1
0
    private void OnTriggerEnter(Collider other)
    {
        float x = (mtr.position - other.transform.position).x;

        fx.transform.position = other.transform.position;
        fx.gameObject.SetActive(true);
        fx.Play();

        GoTo.Receive(other.transform, x, other.transform.position.y);
        other.attachedRigidbody.velocity = Vector3.zero;
    }