コード例 #1
0
    void Teleport()
    {
        fadeEffect.FadeEffect();

        canTele = false;                                                   //Resetting Variable
        Vector3 diff = player.transform.position - cam.transform.position; //Keeping y position

        diff.y = 0;
        player.transform.position = point.point + diff;                     // Moving

        fadeEffect.OnFadeReturn();
    }