That's the one im using!
+ (GameManager *)sharedGameManager
+ (GameManager *)sharedGameManager
{
static GameManager *singletonClass = nil;
if(singletonClass == nil)
{
@synchronized(self)
{
if(singletonClass == nil)
{
singletonClass = [[self alloc] init];
}
}
}
return singletonClass;
}
Mayday Timeattack - Free on Appstore
댓글 없음:
댓글 쓰기