コード例 #1
0
ファイル: Player.cs プロジェクト: LeandroDotta/SpaceHoarder
    private void Update()
    {
        // read inputs
        h = CrossPlatformInputManager.GetAxisRaw("Horizontal");
        v = CrossPlatformInputManager.GetAxisRaw("Vertical");

        if (CrossPlatformInputManager.GetButtonDown("Push"))
        {
            push.Apply();
        }

        if (CrossPlatformInputManager.GetButtonDown("Fire1"))
        {
            grab.Apply();
        }
    }