Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- public class CheckPoint2 : MonoBehaviour {
- void Start ()
- {
- }
- void Update ()
- {
- }
- void OnTriggerEnter(Collider Col)
- {
- if(Col.tag == "Block2")
- {
- Col.GetComponent<Player>().checkPos = transform.position;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement