Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- public class JumpScript : Monobehaviour {
- //============================================
- // VARIABLES
- //============================================
- public int force = 10;
- //============================================
- // FUNCTIONS (UNITY)
- //============================================
- void Start()
- {
- // Run a custom function when the game starts
- JumpUp();
- }
- //============================================
- // FUNCTIONS (CUSTOM)
- //============================================
- void JumpUp()
- {
- Debug.Log("Jumped up with a force of " + force);
- }
- }
Add Comment
Please, Sign In to add comment