Hi guys,
I need to perform a selector after a certain amount of time. At first I figured I could just schedule a method with the Cocos2d director then unschedule it right after it runs the firs time, but I don't think I can pass arguments (2 arguments) to it right?
I suppose I could use a couple of Cocos2d actions (DelayTime + CallFuncND) and store my objects in an array which I would pass through CallFuncND, but that seems pretty bloated.
Something similar (in a non Cocos2d fashion) would be:
[self performSelector:NSSelectorFromString(abilitySelector) withObject:[NSNumber numberWithInt:unitMatch] afterDelay:3.0f];
Any tips would be appreciated!
-Sunsu