Skip to content

player controller, player animations#24

Open
manojkumar4799 wants to merge 1 commit intooutscal:masterfrom
manojkumar4799:feature2-PlayerScript
Open

player controller, player animations#24
manojkumar4799 wants to merge 1 commit intooutscal:masterfrom
manojkumar4799:feature2-PlayerScript

Conversation

@manojkumar4799
Copy link

No description provided.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Namepspaces and class definition missing.

if(Input.GetKeyDown(KeyCode.Space))
{
playerAnimator.SetTrigger("jump");
rb.velocity = new Vector2(0, playerJump);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try to do this with the help of force also .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants