Exemplo n.º 1
0
        public static ProdCommentBalloon Instantiate(ProdCommentBalloon prefab, Transform parent, UISortieShip.Direction iDirection)
        {
            ProdCommentBalloon prodCommentBalloon = Object.Instantiate(prefab);

            prodCommentBalloon.transform.parent = parent;
            prodCommentBalloon.transform.localScaleZero();
            prodCommentBalloon.transform.localPositionZero();
            prodCommentBalloon.Init(iDirection);
            return(prodCommentBalloon);
        }
Exemplo n.º 2
0
        public static ProdCommentBalloon Instantiate(ProdCommentBalloon prefab, Transform parent, UISortieShip.Direction iDirection, MapCommentKind iKind)
        {
            ProdCommentBalloon prodCommentBalloon = Object.Instantiate <ProdCommentBalloon>(prefab);

            prodCommentBalloon.get_transform().set_parent(parent);
            prodCommentBalloon.get_transform().localScaleZero();
            prodCommentBalloon.get_transform().localPositionZero();
            prodCommentBalloon.Init(iDirection, iKind);
            return(prodCommentBalloon);
        }
Exemplo n.º 3
0
        public void PlayBalloon(Action onFinished)
        {
            ProdCommentBalloon balloon = ProdCommentBalloon.Instantiate(((Component)_prefabProdCommentBalloon).GetComponent <ProdCommentBalloon>(), base.transform, _iDirection);

            balloon.sprite.depth = _uiShipSprite.depth + 1;
            balloon.ShowHide().setOnComplete((Action) delegate
            {
                Dlg.Call(ref onFinished);
                UnityEngine.Object.Destroy(balloon.gameObject);
                Mem.Del(ref balloon);
            });
        }