thieumao

Su kien Va Cham - Collision Event

Jun 21st, 2015
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.51 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class VaCham : MonoBehaviour {
  5.  
  6.     // Use this for initialization
  7.     void Start () {
  8.         Debug.Log ("Bat dau");
  9.     }
  10.    
  11.     // Update is called once per frame
  12.     void Update () {
  13.         Debug.Log ("Cap nhat");
  14.     }
  15.  
  16.     void OnCollisionEnter (Collision collision)
  17.     {
  18.         Debug.Log ("Enter called.");
  19.     }
  20.  
  21.     void OnCollisionStay (Collision collision)
  22.     {
  23.         Debug.Log ("Stay called.");
  24.     }
  25.  
  26.     void OnCollisionExit (Collision collision)
  27.     {
  28.         Debug.Log ("Exit called.");
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment