Advertisement
Guest User

HALP

a guest
Oct 25th, 2014
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.33 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class BallCollisionHandler : MonoBehaviour {
  5.  
  6.     // Use this for initialization
  7.     void Start () {
  8.    
  9.     }
  10.  
  11.     void FixedUpdate ()
  12.     {
  13.         while (Time.time <= 2) {
  14.             rigidbody.AddForce (Vector3.right * 10);
  15.         }
  16.        
  17.     }
  18.     // Update is called once per frame
  19.     void Update () {
  20.    
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement