コード例 #1
0
    private void OnTriggerEnter(Collider other)
    {
        GameObject hitOb = other.gameObject.transform.root.gameObject;

        if (warpAble && (hitOb.CompareTag("Player")))
        {
            SEManager.PlayWarpSound();
            SetUseNotAble();
            exitWarp.SetUseNotAble();
            hitOb.transform.position = pareWarpPrefab.transform.position;
            StartCoroutine(DelayMethod(3f, () =>
            {
                SetUseAble();
                exitWarp.SetUseAble();
            }));
        }
    }