Example #1
0
    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;
    }
Example #2
0
    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);
        }
    }