333GameStudio

ScareTRig

Mar 16th, 2016
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  
  3. var Script : GameObject;
  4.  
  5. function Start(){
  6.  
  7. Script.GetComponent(AmnesiaScare);
  8.  
  9. }
  10. function OnTriggerEnter(col : Collider)
  11. {
  12. if(col.gameObject.tag == "Player")
  13. {
  14. Copy();
  15.  
  16. }
  17. }
  18. function Copy(){
  19.  
  20. Script.GetComponent(AmnesiaScare).JumpScare();
  21. Destroy (this);
  22.  
  23. }
Advertisement
Add Comment
Please, Sign In to add comment