Exemplo n.º 1
0
        public bool init()
        {
            bool       flag       = false;
            CCDirector cCDirector = CCDirector.sharedDirector();

            if (cCDirector != null)
            {
                this.contentSize = cCDirector.getWinSize();
                flag             = true;
            }
            return(flag);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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);
        }