i wonder why the pring not work with the following code :
function Update ()
{
var osos = newPlayer("osama",30);
print("New Player Name is : " + osos.playerName + " ,and he old " + osos.playerAge);
}
class newPlayer
{
var playerName:String;
var playerAge:int;
function newPlayer(name:String,age:int)
{
playerName = name;
playerAge = age;
print("New player is created"); // Not Work !!
}
}