Ejemplo n.º 1
0
	void Start () {
		pot = 30;
		dragged = false;
		spawns = GameObject.Find ("Fruitspawns").GetComponent<FruitSpawns> ();
		burpy = GameObject.FindGameObjectWithTag ("Burpy").GetComponent<Burpy> ();
		controller = GameObject.FindGameObjectWithTag ("GameController").GetComponent<ScoreController>();
	}
Ejemplo n.º 2
0
 void Awake()
 {
     dragged = false;
     if (Application.loadedLevelName.Contains("7"))
     {
         spawns = GameObject.FindGameObjectWithTag("Spawner").GetComponent <GiantbugFrtSpawns> ();
     }
     else
     {
         spawns = GameObject.FindGameObjectWithTag("Spawner").GetComponent <FruitSpawns> ();
     }
     burpy      = GameObject.FindGameObjectWithTag("Burpy").GetComponent <Burpy> ();
     controller = GameObject.FindGameObjectWithTag("GameController").GetComponent <ScoreController>();
 }
Ejemplo n.º 3
0
 void Start()
 {
     dragged = false;
     if (Application.loadedLevelName.Contains("7"))
     {
         spawns = GameObject.FindGameObjectWithTag("Spawner").GetComponent <GiantbugFrtSpawns> ();
     }
     else
     {
         spawns = GameObject.FindGameObjectWithTag("Spawner").GetComponent <FruitSpawns> ();
     }
     //while (burpy=null) {
     burpy = GameObject.FindGameObjectWithTag("Burpy").GetComponent <Burpy> ();
     //}
     controller = GameObject.FindGameObjectWithTag("GameController").GetComponent <ScoreController>();
     camPos     = GameObject.Find("Main Camera").transform.position;
 }
Ejemplo n.º 4
0
    void Start()
    {
        if (Application.loadedLevelName.Contains("7"))
        {
            spawns = GameObject.FindGameObjectWithTag("Spawner").GetComponent <GiantbugFrtSpawns> ();
        }
        else
        {
            spawns = GameObject.FindGameObjectWithTag("Spawner").GetComponent <FruitSpawns> ();
        }
        poolingSystem = PoolingSystem.Instance;

        dragged    = false;
        burpy      = GameObject.FindGameObjectWithTag("Burpy").GetComponent <Burpy> ();
        controller = GameObject.FindGameObjectWithTag("GameController").GetComponent <ScoreController>();
        prtclpos   = new Vector3(0.0f, 4.0f, 0.0f);
        camPos     = GameObject.Find("Main Camera").transform.position;
    }