예제 #1
0
        public static ProdBalloon Instantiate(ProdBalloon prefab, Transform parent, UISortieShip.Direction iDirection, enumMapEventType iEventType, enumMapWarType iWarType)
        {
            ProdBalloon prodBalloon = UnityEngine.Object.Instantiate(prefab);

            prodBalloon.transform.parent = parent;
            prodBalloon.transform.localPositionZero();
            prodBalloon.transform.localScaleZero();
            prodBalloon.InitText(iDirection, iEventType, iWarType);
            return(prodBalloon);
        }
        public static ProdBalloon Instantiate(ProdBalloon prefab, Transform parent, UISortieShip.Direction iDirection, enumMapEventType iEventType, enumMapWarType iWarType)
        {
            ProdBalloon prodBalloon = Object.Instantiate <ProdBalloon>(prefab);

            prodBalloon.get_transform().set_parent(parent);
            prodBalloon.get_transform().localPositionZero();
            prodBalloon.get_transform().localScaleZero();
            prodBalloon.InitText(iDirection, iEventType, iWarType);
            return(prodBalloon);
        }