Пример #1
0
        public override void start()
        {
            string name = this.param ["name"];

            Image image = this.gameManager.imageManager.getImage(name);

            float x = (this.param["x"] != "") ? float.Parse(this.param["x"]) : float.Parse(image.getParam("x"));
            float y = (this.param ["y"] != "") ? float.Parse(this.param ["y"]) : float.Parse(image.getParam("y"));
            float z = (this.param["z"] != "") ? float.Parse(this.param["z"]) : float.Parse(image.getParam("z"));

            image.setPosition(x, y, z);

            //scaleが指定されている場合はそっちを優先
            if (this.param ["scale"] != "")
            {
                this.param ["scale_x"] = this.param ["scale"];
                this.param ["scale_y"] = this.param ["scale"];
                this.param ["scale_z"] = this.param ["scale"];
            }

            float scale_x = (this.param["scale_x"] != "") ? float.Parse(this.param["scale_x"]) : float.Parse(image.getParam("scale_x"));
            float scale_y = (this.param["scale_y"] != "") ? float.Parse(this.param["scale_y"]) : float.Parse(image.getParam("scale_y"));
            float scale_z = (this.param["scale_z"] != "") ? float.Parse(this.param["scale_z"]) : float.Parse(image.getParam("scale_z"));

            image.setScale(scale_x, scale_y, scale_z);

            //アニメーション中にクリックして次に進めるかどうか。
            this.gameManager.nextOrder();
        }
Пример #2
0
        public override void start()
        {
            string name = this.param ["name"];
            string tag  = this.param ["tag"];

            bool flag_delegate = true;

            List <string> images = new List <string> ();

            if (tag != "")
            {
                images = this.gameManager.imageManager.getImageNameByTag(tag);
            }
            else
            {
                images.Add(name);
            }

            foreach (string image_name in images)
            {
                Image image = this.gameManager.imageManager.getImage(image_name);

                float x = (this.param ["x"] != "") ? float.Parse(this.param ["x"]) : float.Parse(image.getParam("x"));
                float y = (this.param ["y"] != "") ? float.Parse(this.param ["y"]) : float.Parse(image.getParam("y"));
                float z = (this.param ["z"] != "") ? float.Parse(this.param ["z"]) : float.Parse(image.getParam("z"));

                float  time = float.Parse(this.param ["time"]);
                string type = this.param ["type"];
                //string wait = this.param ["wait"];

                image.setPosition(x, y, z);

                //アニメーション中にクリックして次に進めるかどうか。
                StatusManager.enableNextOrder = false;

                //処理を待たないなら
                if (this.param ["wait"] == "false")
                {
                    StatusManager.enableNextOrder = true;
                    this.gameManager.nextOrder();
                }
                else
                {
                    //設定するのは一つだけ
                    if (flag_delegate == true)
                    {
                        flag_delegate = false;
                        image.getObject().setFinishAnimationDelegate(this.finishAnimationDeletgate);
                    }
                }

                image.show(time, type);
            }
        }