예제 #1
0
        public static ProdBCResult Instantiate(ProdBCResult prefab, Transform parent)
        {
            ProdBCResult prodBCResult = UnityEngine.Object.Instantiate(prefab);

            prodBCResult.transform.parent = parent;
            prodBCResult.transform.localScaleOne();
            prodBCResult.transform.localPositionZero();
            prodBCResult.Init();
            return(prodBCResult);
        }
예제 #2
0
        public static ProdBCResult Instantiate(ProdBCResult prefab, Transform parent)
        {
            ProdBCResult prodBCResult = Object.Instantiate <ProdBCResult>(prefab);

            prodBCResult.get_transform().set_parent(parent);
            prodBCResult.get_transform().localScaleOne();
            prodBCResult.get_transform().localPositionZero();
            prodBCResult.Init();
            return(prodBCResult);
        }
 public override bool Init(object data)
 {
     _prodBCResult = ProdBCResult.Instantiate(((Component)BattleCutManager.GetPrefabFile().prefabProdResult).GetComponent <ProdBCResult>(), BattleCutManager.GetSharedPlase());
     _prodBCResult.StartAnimation(OnResultAnimFinished);
     return(false);
 }