Ejemplo n.º 1
0
 private void InitBase(eEFFECT_TARGET eType, EFFECT_INFO effectInfo, GameObject goParent, Vector3 v3Target)
 {
     this.m_eEffectTarget = eType;
     this.m_kEffectInfo   = effectInfo;
     if (this.m_CasterChar != null)
     {
         Nr3DCharBase nr3DCharBase = this.m_CasterChar.Get3DChar();
         if (nr3DCharBase != null)
         {
             this.m_fScale = this.m_kEffectInfo.SCALE * nr3DCharBase.GetDiffCharScale();
         }
         else
         {
             this.m_fScale = this.m_kEffectInfo.SCALE;
         }
     }
     else
     {
         this.m_fScale = this.m_kEffectInfo.SCALE;
     }
     if (this.m_fScale < this.m_kEffectInfo.SCALE)
     {
         this.m_fScale = this.m_kEffectInfo.SCALE;
     }
     this.m_fStartTime = Time.time;
     this.m_goParent   = goParent;
     this.m_v3Target   = v3Target + this.m_kEffectInfo.DIFFPOS;
     this.m_fLifeTime  = this.m_kEffectInfo.LIFE_TIME;
     this.m_eMakeScene = Scene.CurScene;
 }