コード例 #1
0
        public static ProdCombatRation Instantiate(ProdCombatRation prefab, Transform parent, RationModel model)
        {
            ProdCombatRation prodCombatRation = UnityEngine.Object.Instantiate(prefab);

            prodCombatRation.transform.parent = parent;
            prodCombatRation.transform.localScaleZero();
            prodCombatRation.transform.localPositionZero();
            prodCombatRation.Init(model);
            return(prodCombatRation);
        }
コード例 #2
0
        public static ProdCombatRation Instantiate(ProdCombatRation prefab, Transform parent, RationModel model)
        {
            ProdCombatRation prodCombatRation = Object.Instantiate <ProdCombatRation>(prefab);

            prodCombatRation.get_transform().set_parent(parent);
            prodCombatRation.get_transform().localScaleZero();
            prodCombatRation.get_transform().localPositionZero();
            prodCombatRation.Init(model);
            return(prodCombatRation);
        }