private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
Exemple #2
0
 void Start()
 {
     cam     = GameObject.FindWithTag("VideoCamera");
     dragCam = cam.GetComponent <DragCamera>();
 }
Exemple #3
0
 void Start()
 {
     dragCamera = Camera.main.GetComponent <DragCamera> ();
     Debug.Assert(dragCamera);
 }