public void SetPulley(Pulley pulley) { if (!pulley) { return; } m_pulley = pulley; AttachRopes(); pulley.SetSupport(this); m_nview.GetZDO().Set(PulleyBaseHash, pulley.GetZDOID()); }
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); }