SHARE
TWEET

Untitled

a guest Jun 19th, 2012 604 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //--------Weapon Pickup--------//
  2. //--------Kevin---------------//
  3. //--------Outbreak-----------//
  4.  
  5. var ShowPythonpickup : boolean = false;
  6. var ShowG36CPickup : boolean = false;
  7. var G36CPic : Texture2D;
  8.  
  9. function OnCollisionEnter(isCollide : Collision)
  10. {
  11.         if(isCollide.gameObject.tag == "G36CPickup")
  12.         {
  13.                 ShowG36CPickup = true;
  14.         }
  15. }
  16.  
  17. function OnCollisionExit(isExitCollide : Collision)
  18. {
  19.         ShowG36CPickup = false;
  20. }
  21.  
  22. function OnGUI()
  23. {
  24.         if( ShowG36CPickup)
  25.         {
  26.                 GUI.DrawTexture(Rect(450,750,100,20), G36CPic);
  27.         }
  28. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top