Ejemplo n.º 1
0
        public FurnitureSpriteObserver()
        {
            furnitureHolder = new GameObject("Furniture");

            gameobjects = new Dictionary <ITile, GameObject>();

            OrientationManager.RegisterObserver(this);
        }
Ejemplo n.º 2
0
        public TileSpriteObserver()
        {
            tileHolder = new GameObject("Tiles");

            gameobjects = new Dictionary <ITile, GameObject> ();

            OrientationManager.RegisterObserver(this);
        }
Ejemplo n.º 3
0
        public WallSpriteObserver()
        {
            wallHolder = new GameObject("Walls");

            gameobjects = new Dictionary <IWall, GameObject> ();

            OrientationManager.RegisterObserver(this);

            deferredCaller = GameObject.FindObjectOfType <DeferredCaller>();
        }
Ejemplo n.º 4
0
        public void Init(int levelWidth, int levelHeight)
        {
            xDiff = (levelHeight / 2f) - 0.5f;
            yDiff = (levelWidth / 4f) - 0.25f;

            if (!subscribedToOrientationManager)
            {
                OrientationManager.RegisterObserver(this);
                subscribedToOrientationManager = true;
            }
        }