private ImageMessage(
            DDNA ddna,
            JSONObject configuration,
            string name,
            int depth,
            Engagement engagement)
        {
            this.ddna = ddna;

            gameObject = new GameObject(name, typeof(RectTransform));
            SpriteMap spriteMap = gameObject.AddComponent <SpriteMap>();

            spriteMap.Build(ddna, configuration);


            OrientationChange changer = gameObject.AddComponent <OrientationChange>();

            changer.Init(redraw);

            this.name          = name;
            this.configuration = configuration;
            this.spriteMap     = spriteMap;
            this.depth         = depth;
            this.engagement    = engagement;
            changeListener     = changer;
        }
Exemplo n.º 2
0
        private ImageMessage(JSONObject configuration, string name, int depth, Engagement engagement)
        {
            gameObject = new GameObject(name, typeof(RectTransform));
            SpriteMap spriteMap = gameObject.AddComponent <SpriteMap>();

            spriteMap.Build(configuration);

            this.configuration = configuration;
            this.spriteMap     = spriteMap;
            this.depth         = depth;
            this.engagement    = engagement;
        }
        private ImageMessage(JSONObject configuration, string name, int depth)
        {
            GameObject gameObject = new GameObject(name);
            SpriteMap  spriteMap  = gameObject.AddComponent <SpriteMap>();

            spriteMap.Build(configuration);

            this.configuration = configuration;
            this.gameObject    = gameObject;
            this.spriteMap     = spriteMap;
            this.depth         = depth;
        }
Exemplo n.º 4
0
        private void redraw()
        {
            Object.Destroy(gameObject);
            gameObject = new GameObject(name, typeof(RectTransform));

            OrientationChange changer = gameObject.AddComponent <OrientationChange>();

            changer.Init(redraw);
            SpriteMap spriteMap = gameObject.AddComponent <SpriteMap>();

            spriteMap.Build(ddna, configuration);
            Show();
        }