Dialogue System Events - Can I toggle a setting within a component?
Posted: Thu Aug 05, 2021 3:52 am
Hello!
This might be a simple question/answer but within the Dialogue System Events under Conversation Start/End, can I toggle my "Can Move - True/False" under a Player Controller script component?
Initially I have the Player Controller.enabled off, and Player Animator.enabled off, and Player Rigidbody2D.sleep to stop the player from moving and animating while in a conversation. This turns off those entire components and stops my player from running and animating but he freezes mid run and stays on that frame.
Is there a simpler way to set my 'Can Move' from true to false under the Player Controller script (my player goes to zero velocity and his animation returns to a facing state instead of immediately stopping him mid run) within the Dialogue System Events?
Just somewhere I can put this in 'PlayerController.instance.canMove = false;'
Thanks again for any help! I am loving the whole Dialogue System overall!
This might be a simple question/answer but within the Dialogue System Events under Conversation Start/End, can I toggle my "Can Move - True/False" under a Player Controller script component?
Initially I have the Player Controller.enabled off, and Player Animator.enabled off, and Player Rigidbody2D.sleep to stop the player from moving and animating while in a conversation. This turns off those entire components and stops my player from running and animating but he freezes mid run and stays on that frame.
Is there a simpler way to set my 'Can Move' from true to false under the Player Controller script (my player goes to zero velocity and his animation returns to a facing state instead of immediately stopping him mid run) within the Dialogue System Events?
Just somewhere I can put this in 'PlayerController.instance.canMove = false;'
Thanks again for any help! I am loving the whole Dialogue System overall!