public bool init() { bool flag = false; CCDirector cCDirector = CCDirector.sharedDirector(); if (cCDirector != null) { this.contentSize = cCDirector.getWinSize(); flag = true; } return(flag); }
public virtual bool init() { bool flag = false; CCDirector cCDirector = CCDirector.sharedDirector(); if (cCDirector != null) { this.contentSize = cCDirector.getWinSize(); this.m_bIsTouchEnabled = false; this.m_bIsAccelerometerEnabled = false; flag = true; } return(flag); }
public bool init() { bool bRet = false; do { CCDirector director = CCDirector.sharedDirector(); if (director == null) { break; } contentSize = director.getWinSize(); // success bRet = true; } while (false); return(bRet); }
public virtual bool init() { bool bRet = false; do { CCDirector director = CCDirector.sharedDirector(); if (director == null) { break; } contentSize = director.getWinSize(); m_bIsTouchEnabled = false; m_bIsAccelerometerEnabled = false; bRet = true; } while (false); return(bRet); }