Advertisement
LittleAngel

State

Feb 17th, 2012
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.43 KB | None | 0 0
  1. // CameraMovement Script
  2.  
  3. using UnityEngine;
  4. using System.Collections;
  5.  
  6. public class CameraMovment : MonoBehaviour
  7.  
  8. {  
  9.     public State state;
  10. // Update is called once per frame
  11.     void Update ()
  12.         {  
  13.         while (state != State.Playing)
  14.             {
  15.             transform.position = new Vector3(0f, transform.position.y, transform.position.z);
  16.             }
  17.         }
  18. }
  19.  
  20.  
  21.  
  22. //Player script
  23.  
  24. public enum State
  25.     {
  26.         Playing,
  27.         Explosion,
  28.         Invincible
  29.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement