public void Init() { string joystickName = GetComponent <UltimateJoystick>().joystickName; m_Joystick = UltimateJoystick.GetJoystick(joystickName); m_IsActive = true; }
private void DisableStick(string name) { UltimateJoystick s = UltimateJoystick.GetJoystick(name); if (s != null) { CanvasGroup cg = s.GetComponent <CanvasGroup>(); cg.alpha = 0.0f; } }