Hi all,im totally new to classes and all that stuff so i want to make object to have more of same classes from one script based on one variable called enemyes:
class classtut extends MonoBehaviour {
var Enemyes : int; //this will declare how many classes we will have
class Enemy {
public var Health : float = 100;
public var Obj : GameObject;
public function En (hel : float){
hel = Health;
}
}
public var Enm : Enemy = new Enemy();
function Start () {
}
function Update () {
//number of enemyes = Enemyes
Debug.Log(Enm.Health); //for the test
//and other stuff...
}
} //sorry for my bad english :(