public void SetJoystickEnable(bool bEnabled) { if (this.m_pkCharMove != null) { if (bEnabled) { this.m_pkCharMove.StartDragMove(); } else { this.m_pkCharMove.InitDragMove(); this.m_pkCharMove.NoChangeMove(); } } if (!bEnabled) { this.control.SetColor(new Color(1f, 1f, 1f, 0.5f)); this.control.transform.localPosition = this.oldPos; } else { this.control.SetColor(new Color(1f, 1f, 1f, 1f)); } this.backImage.Visible = bEnabled; this.bDragMoveStarted = bEnabled; NkInputManager.SetJoyStick(bEnabled); }