Exemplo n.º 1
0
 public virtual void OnHoveringOut(UnityEngine.Object sender, AbsorberEventArgs e)
 {
     m_isHovering     = false;
     m_hoveringTarget = null;
     if (m_hoveringOut != null)
     {
         m_hoveringOut(sender, e);
     }
 }
Exemplo n.º 2
0
 public virtual void OnHoveringIn(UnityEngine.Object sender, AbsorberEventArgs e)
 {
     m_isHovering     = true;
     m_hoveringTarget = e.m_absorbTarget;
     if (m_hoveringIn != null)
     {
         m_hoveringIn(sender, e);
     }
 }
Exemplo n.º 3
0
        public virtual void OnReleasing(UnityEngine.Object sender, AbsorberEventArgs e)
        {
            m_isAbsorbing = false;
            UnFix();
            //e.m_absorbTarget.Rigidbody.isKinematic = false;
            m_absorbingTarget = null;

            if (m_releasing != null)
            {
                m_releasing(sender, e);
            }
        }
Exemplo n.º 4
0
        public virtual void OnAbsorbbing(UnityEngine.Object sender, AbsorberEventArgs e)
        {
            m_isAbsorbing     = true;
            m_absorbingTarget = e.m_absorbTarget;
            m_absorbingTarget.Transform.position = Anchor.transform.position;
            m_absorbingTarget.Transform.rotation = Anchor.transform.rotation;
            Fix();
            //m_absorbingTarget.Rigidbody.isKinematic = true;

            if (m_absorbing != null)
            {
                m_absorbing(sender, e);
            }
        }
Exemplo n.º 5
0
 public AbsorberEventArgs(IAbsorbTarget absorbTarget)
 {
     m_absorbTarget = absorbTarget;
 }