0
我有一個精靈套件場景,其中敵人隨機間隔發送並且玩家必須銷燬它們。不過,我想等3秒鐘纔開始產卵。我試圖在運行精靈套件場景前等待3秒
-(id)initWithSize:(CGSize)size {
if (self = [super initWithSize:size]) {
/* Setup your scene here */
//Set the init variables.
//AudioServicesPlaySystemSound (kSystemSoundID_Vibrate);
SKAction *wait = [SKAction waitForDuration:3];
[self runAction:wait];}
這是不行的,我究竟做錯了什麼?
非常感謝你 –