Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        this.player = beeba.GetComponent<Beeba>();

        for (int i = 0; i < this.player.life; i++) {
            var obj = Instantiate(this.life) as GameObject;
            obj.transform.parent = this.transform;
            obj.name = "" + i;
            lifes.Add(obj);
        }
    }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     this.beeba = beebaObj.GetComponent<Beeba>();
 }