Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- public class GeneratorCoordinateFreeze : MonoBehaviour
- {
- float xPos;
- float yPos;
- void Start ()
- {
- yPos = this.transform.position.y;
- xPos = this.transform.position.x;
- }
- void Update ()
- {
- transform.position = new Vector3(xPos, yPos);
- Debug.Log("X: " + xPos + " || " + "Y: " + yPos);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement