public void OnClick() { // Find the binding manager in the scene Binding_Manager bindingManager = GameObject.FindObjectOfType <Binding_Manager>(); // Pass the binding manager the attached call group so it is able to place the keybindings afterwards bindingManager.CallGroupToBind = this.refGroup; }
//--- Unity Methods ---// private void Awake() { // Init the private variables m_bindingManager = GameObject.FindObjectOfType <Binding_Manager>(); m_roomManager = GameObject.FindObjectOfType <Room_Manager>(); // Set up the special key animators m_swapKeyAnimator.AttachedKeyCode = m_swapKey; m_disconnectKeyAnimator.AttachedKeyCode = m_disconnectKey; m_deselectKeyAnimator.AttachedKeyCode = m_deselectKey; }
public ThreadManager() { binding_Manager = Binding_Manager.Instance; }