Disable/Enable the Proximity Selector
Posted: Tue Aug 27, 2019 7:00 am
Hello there!
I've been trying to disable the proximity selector via script and it's not really working out. I'm trying to disable it when my character is jumping, then enable it again when they are grounded.
This is all the code I have related to the proximity selector:
using PixelCrushers.DialogueSystem;
ProximitySelector proximitySelector = GetComponent<ProximitySelector>().enabled = false;
But I get this error:
BasicWalkerController.cs(337,41): error CS0029: Cannot implicitly convert type 'bool' to 'PixelCrushers.DialogueSystem.ProximitySelector
Sorry if this is a bit simple, but I just can't seem to figure it out.
I've been trying to disable the proximity selector via script and it's not really working out. I'm trying to disable it when my character is jumping, then enable it again when they are grounded.
This is all the code I have related to the proximity selector:
using PixelCrushers.DialogueSystem;
ProximitySelector proximitySelector = GetComponent<ProximitySelector>().enabled = false;
But I get this error:
BasicWalkerController.cs(337,41): error CS0029: Cannot implicitly convert type 'bool' to 'PixelCrushers.DialogueSystem.ProximitySelector
Sorry if this is a bit simple, but I just can't seem to figure it out.