예제 #1
0
    // Show indicator of teleportation
    public void teleportRespond(MenuItem menuOption, ControlInput controller, ControlInput.ControllerDescription controllerObject, GameObject avatar)
    {
        if (!touchingTeleport.ContainsKey(controllerObject))
        {
            touchingTeleport[controllerObject] = false;
        }

        if (!touchingTeleport[controllerObject])
        {
            touchSound.Play();
            controller.setTeleportBeam(controllerObject);
            touchingTeleport[controllerObject] = true;
        }
    }