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.