public static ProdBufferEffect Instantiate(ProdBufferEffect prefab, Transform parent)
        {
            ProdBufferEffect prodBufferEffect = Object.Instantiate <ProdBufferEffect>(prefab);

            prodBufferEffect.get_transform().set_parent(parent);
            prodBufferEffect.get_transform().localScaleOne();
            prodBufferEffect.get_transform().set_localPosition(new Vector3(-420f, -80f, 0f));
            prodBufferEffect.Init();
            return(prodBufferEffect);
        }
Пример #2
0
        public static ProdBufferEffect Instantiate(ProdBufferEffect prefab, Transform parent)
        {
            ProdBufferEffect prodBufferEffect = UnityEngine.Object.Instantiate(prefab);

            prodBufferEffect.transform.parent = parent;
            prodBufferEffect.transform.localScaleOne();
            prodBufferEffect.transform.localPosition = new Vector3(-420f, -80f, 0f);
            prodBufferEffect.Init();
            return(prodBufferEffect);
        }
        private bool Init(EffectModel model, int nBufferCnt)
        {
            _nBufferCnt = nBufferCnt;
            ProdBufferEffect prodBufferEffect = BattleTaskManager.GetPrefabFile().prodBufferEffect;

            prodBufferEffect.Init();
            prodBufferEffect.SetEffectData(model);
            _clsEffectModel = model;
            BufferObjectDeployment();
            return(true);
        }