Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var Script : GameObject;
- function Start(){
- Script.GetComponent(AmnesiaScare);
- }
- function OnTriggerEnter(col : Collider)
- {
- if(col.gameObject.tag == "Player")
- {
- Copy();
- }
- }
- function Copy(){
- Script.GetComponent(AmnesiaScare).JumpScare();
- Destroy (this);
- }
Advertisement
Add Comment
Please, Sign In to add comment