i am trying to make a shotgun jump where i press left mouse button and it shoots me backwards but i dont know how to. it would be really apreciated if you could help i just want the code inside the if statement
this is my my code
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ShotgunJump : MonoBehaviour
{
public Rigidbody rb;
public Transform orientation;
// Update is called once per frame
void Update()
{
if (Input.GetMouseButtonDown(0))
{
}
}
}
[CODE/]
