コード例 #1
0
    private void CreateEffect()
    {
        Fx_fx beanById = LocalModelManager.Instance.Fx_fx.GetBeanById(this.m_Data.CreateEffectID);

        if (beanById != null)
        {
            this.effect = GameLogic.EffectGet(beanById.Path);
            this.effect.transform.parent        = this.m_Entity.GetKetNode(beanById.Node);
            this.effect.transform.localPosition = Vector3.zero;
            this.effect.transform.localRotation = Quaternion.identity;
            this.effect.transform.localScale    = Vector3.one;
        }
    }
コード例 #2
0
 private void CreateEffect()
 {
     if (this.effect == null)
     {
         Fx_fx beanById = LocalModelManager.Instance.Fx_fx.GetBeanById(this.buff_data.FxId);
         if (beanById != null)
         {
             this.effect = GameLogic.EffectGet(beanById.Path);
             this.effect.transform.SetParent(this.m_Entity.GetKetNode(beanById.Node));
             if (beanById.Node != 7)
             {
                 this.effect.transform.localPosition = Vector3.zero;
             }
             else
             {
                 RectTransform transform = this.effect.transform as RectTransform;
                 transform.anchoredPosition = Vector3.zero;
             }
             this.effect.transform.localRotation = Quaternion.identity;
             this.effect.transform.localScale    = Vector3.one;
         }
     }
 }