コード例 #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;
    }
コード例 #2
0
ファイル: Soldier.cs プロジェクト: ShotgunEmmet/MBT-2016-Demo
    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);
        }
    }