Exemple #1
0
        public override void start()
        {
            GameObject objLayer = UIMgr.CreateLayer(layerNo);

            if (objLayer == null)
            {
                return;
            }

            objLayer.transform.parent.gameObject.SetActive(true);
            objLayer.SetActive(true);

            Object2D   info   = UIMgr.GetItemInfo(itemID);
            GameObject objPic = null;

            if (info != null)
            {
                objPic = info.gameObject;
            }
            else
            {
                objPic      = UIMgr.CreatePic(objLayer);
                objPic.name = itemID;
            }

            Object2D picShow = objPic.GetComponent <Object2D>();

            picShow.AddAction(this);

            this.isEnd = true;
        }
Exemple #2
0
        public override void start()
        {
            //Debug.Log("Run Action : " + actID + " " + this.name);

            GameObject objLayer = UIMgr.CreateLayer(layer);

            if (objLayer == null)
            {
                return;
            }
            objLayer.SetActive(true);

            if (string.IsNullOrEmpty(assetID))
            {
                return;
            }

            Object2D   info   = UIMgr.GetItemInfo(itemID);
            GameObject objPic = null;

            if (info != null)
            {
                objPic = info.gameObject;
            }
            else
            {
                objPic      = UIMgr.CreatePic(objLayer);
                objPic.name = itemID;
            }

            info.AddAction(this);

            this.isEnd = true;
        }