Exemplo n.º 1
0
 public void SetPulley(Pulley pulley)
 {
     if (!pulley)
     {
         return;
     }
     m_pulley = pulley;
     AttachRopes();
     pulley.SetSupport(this);
     m_nview.GetZDO().Set(PulleyBaseHash, pulley.GetZDOID());
 }
Exemplo n.º 2
0
 internal void PulleyBaseDestroyed(Pulley pulley)
 {
     if (m_pulley != pulley)
     {
         Jotunn.Logger.LogWarning("Invalid callback from " + pulley.GetZDOID() + " to " + this.GetZDOID() + ", expected " + m_pulley?.GetZDOID());
         return;
     }
     m_pulley = null;
     RemoveRopes();
     InvokeRepeating("LookForSupport", PulleyUpdateTime, PulleyUpdateTime);
 }