Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections;
- using UnityEngine;
- public class nama : MonoBehaviour {
- void Update () {
- if (Input.GetKey (KeyCode.Space)) {
- GetComponent<Rigidbody>().AddForce (new Vector3 (0, 10, 0), ForceMode.Impulse);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement