protected GameObject(GameObjectName mGameObjectName, int index, Sprite.SpriteName mSpriteName) { this.cGameObjectName = mGameObjectName; this.x = 0.0f; this.y = 0.0f; this.index = index; this.cProxySprite = ProxySpriteManager.add(mSpriteName); Debug.Assert(cProxySprite != null); this.cCollisionObj = new CollisionObject(cProxySprite); Debug.Assert(cCollisionObj != null); this.death = false; }
public static void createMInstance(int deltaRefillCount = 3, int prefillCount = 5) { Debug.Assert(deltaRefillCount > 0); Debug.Assert(prefillCount > 0); if (proxyMInstance == null) { /// Debug.WriteLine("Created a instance of Proxy Manager"); proxyMInstance = new ProxySpriteManager(deltaRefillCount, prefillCount); } ProxySprite pPSprite = ProxySpriteManager.add(Sprite.SpriteName.NullObject); Debug.Assert(pPSprite != null); Debug.Assert(proxyMInstance != null); }