0
我有一个在某个特定时间添加到舞台上的演员。加入舞台后需要计算价值。 有没有办法在添加到阶段之后向Actor添加回调?如何在演员添加到舞台时添加回调?
示例代码
public class SlotReel extends Table{
public SlotReel() {
}
public void compute(){
//call after SlootReel is added to stage
}
}
例阶段添加代码
stage.addActor(slotReel);// I wish to trigger the compute method in SlotReel after here.