public void Start() { m_MapInput = playerInput.GetActions <FirstPersonControls>(); if (!playerInput.handle.global) { transform.Find("Canvas/Virtual Joystick").gameObject.SetActive(false); } tank.enabled = false; mbt.enabled = false; mbt2.enabled = false; }
public void Start() { m_MapInput = playerInput.GetActions <FirstPersonControls>(); if (rebinder != null) { rebinder.Initialize(m_MapInput); } m_Rigid = GetComponent <Rigidbody2D>(); if (!playerInput.handle.global) { transform.Find("Canvas/Virtual Joystick").gameObject.SetActive(false); } }