Esempio n. 1
0
        private object AddLinkEffect(object param)
        {
            if (m_Owner != null)
            {
                AddLinkEffect add = (AddLinkEffect)param;
                Quaternion    rot = new Quaternion();
                rot.eulerAngles = add.rotate;

                EntityView ev = m_Owner.GetView();
                if (ev != null)
                {
                    return(ev.AddLinkEffect(ref add.strEffectName, ref add.strLinkName, add.vOffset, rot, add.scale, (Engine.LinkFollowType)add.nFollowType, add.bIgnoreRide, add.nLevel, add.callback, add.param));
                }
            }

            return(null);
        }