示例#1
0
 public BallEntity()
 {
     mData = new ConstantData ();
     InitialPhysicsEntity ("ball");
 }
        private void CreateLayers()
        {
            hudLayer = new CCLayer ();
            this.AddChild (hudLayer);

            gameplayLayer = new CCLayer ();
            this.AddChild (gameplayLayer);

            mData = new ConstantData (gameplayLayer);
        }
示例#3
0
 public BallEntity(CCLayer gameLayer)
 {
     gamelayer = gameLayer;
     mData = new ConstantData ();
     InitialPhysicsEntity ("ball");
 }