Advertisement
KorolevDmitry123

Untitled

Apr 9th, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class CheckPoint2 : MonoBehaviour {
  5.  
  6.  
  7. void Start ()
  8. {
  9.  
  10. }
  11.  
  12.  
  13. void Update ()
  14. {
  15.  
  16. }
  17.  
  18. void OnTriggerEnter(Collider Col)
  19. {
  20. if(Col.tag == "Block2")
  21. {
  22. Col.GetComponent<Player>().checkPos = transform.position;
  23. }
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement