private void OnTriggerEnter(Collider other) { if (other.gameObject == npc) { mover.SendMessage("SetReturning", false); mover.SendMessage("EndMove"); mover.SendMessage("SetEnable", true); Debug.Log(npc + "가 원래자리로 돌아옴"); } }
private void OnTriggerEnter(Collider other) { if (other.gameObject == npc) { transform.localPosition = new Vector3(0, -1000, 0); mover.SendMessage("EndMove"); Debug.Log("Collide" + other.name); } }