Esempio n. 1
0
 public virtual void OnHoveringOut(UnityEngine.Object sender, AbsorberEventArgs e)
 {
     m_isHovering     = false;
     m_hoveringTarget = null;
     if (m_hoveringOut != null)
     {
         m_hoveringOut.Invoke();
     }
     if (m_hoveringOutEventHandle != null)
     {
         m_hoveringOutEventHandle(sender, e);
     }
 }
Esempio 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.Invoke();
     }
     if (m_hoveringInEventHandle != null)
     {
         m_hoveringInEventHandle(sender, e);
     }
 }
Esempio n. 3
0
 public virtual void OnReleasing(UnityEngine.Object sender, AbsorberEventArgs e)
 {
     m_isAbsorbing = false;
     UnFix();
     // print("OnReleasing");
     //e.m_absorbTarget.Rigidbody.isKinematic = false;
     m_absorbingTarget = null;
     if (m_releasing != null)
     {
         m_releasing.Invoke();
     }
     if (m_releasingEventHandle != null)
     {
         m_releasingEventHandle(sender, e);
     }
 }
Esempio 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.Invoke();
            }

            if (m_absorbingEventHandle != null)
            {
                m_absorbingEventHandle(sender, e);
            }
        }