void Update() { if (Input.GetKeyDown(KeyCode.K)) { if (CanvasKeyboard.IsOpen) { CanvasKeyboard.Close(); } else { CanvasKeyboard.Open(GetComponent <Canvas>()); } } }
public void Open() { CanvasKeyboard.Open(CanvasKeyboardObject, gameObject); }
void Update() { if (Input.GetKeyDown(KeyCode.K)) { if (CanvasKeyboard.IsOpen) { CanvasKeyboard.Close(); } else { CanvasKeyboard.Open(GetComponent <Canvas>()); } } }
public void Open() { CanvasKeyboard.Open(CanvasKeyboardObject, gameObject); }