Ejemplo n.º 1
0
 public void Start()
 {
     p          = GetComponent <Player_Movement>();
     rig        = GetComponent <Rigidbody2D>();
     camTrack   = camera.GetComponent <Camera_Tracker> ();
     blocks     = new List <GameObject> ();
     graves     = new List <GameObject> ();
     heartsList = GameObject.Find("LifeCounter").GetComponent <Lives> ();
     pillsList  = GameObject.Find("PillCounter").GetComponent <Lives> ();
 }
Ejemplo n.º 2
0
		public void Start ()
		{

		p=GetComponent<Player_Movement>();
            rig=GetComponent<Rigidbody2D>();
				camTrack = camera.GetComponent<Camera_Tracker> ();
				blocks = new List<GameObject> ();
				graves = new List<GameObject> ();
				heartsList = GameObject.Find ("LifeCounter").GetComponent<Lives> ();
				pillsList = GameObject.Find ("PillCounter").GetComponent<Lives> ();
		}