Stardog

UnityTutTestClass

Mar 27th, 2015
529
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.63 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class JumpScript : Monobehaviour {
  5.  
  6.     //============================================
  7.     // VARIABLES
  8.     //============================================
  9.  
  10.     public int force = 10;
  11.  
  12.     //============================================
  13.     // FUNCTIONS (UNITY)
  14.     //============================================
  15.  
  16.     void Start()
  17.     {
  18.         // Run a custom function when the game starts
  19.         JumpUp();
  20.     }
  21.  
  22.     //============================================
  23.     // FUNCTIONS (CUSTOM)
  24.     //============================================
  25.  
  26.     void JumpUp()
  27.     {
  28.         Debug.Log("Jumped up with a force of " + force);
  29.     }
  30.  
  31. }
Add Comment
Please, Sign In to add comment