From d1974b88c84320d0b2d22dbb1e34d8aefd440528 Mon Sep 17 00:00:00 2001 From: Eqic Date: Fri, 24 Dec 2021 00:12:53 -0700 Subject: [PATCH] Replace '.Controllers' with '.GetController' Example contains use case where the expression 'Knit.Controllers.CameraController' is used, which does not work in current Knit versions. Replaced documentation with 'Knit.GetController("CameraController")'. --- docs/controllers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/controllers.md b/docs/controllers.md index 6fbd9949..5ac36f53 100644 --- a/docs/controllers.md +++ b/docs/controllers.md @@ -123,7 +123,7 @@ Other code could then listen in for that event: ```lua -- Somewhere else on the client -local CameraController = Knit.Controllers.CameraController +local CameraController = Knit.GetController("CameraController") CameraController.LockedChanged:Connect(function(isLocked) print(isLocked and "Camera is now locked" or "Camera was unlocked")