Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // CameraMovement Script
- using UnityEngine;
- using System.Collections;
- public class CameraMovment : MonoBehaviour
- {
- public State state;
- // Update is called once per frame
- void Update ()
- {
- while (state != State.Playing)
- {
- transform.position = new Vector3(0f, transform.position.y, transform.position.z);
- }
- }
- }
- //Player script
- public enum State
- {
- Playing,
- Explosion,
- Invincible
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement