public void Restore(NetInfo prefab) { PillarUtils.SetBridgePillar(prefab, BridgePillarInfo); PillarUtils.SetBridgePillar2(prefab, BridgePillarInfo2); PillarUtils.SetBridgePillar3(prefab, BridgePillarInfo3); PillarUtils.SetBridgePillars(prefab, BridgePillarInfos); PillarUtils.SetMiddlePillar(prefab, MiddlePillarInfo); }
public static PillarPatcherState?Apply(NetInfo info, NetworkSkin skin) { if (info == null || skin == null) { return(null); } var state = new PillarPatcherState(info); PillarUtils.SetBridgePillar(info, skin.m_bridgePillarInfo); PillarUtils.SetBridgePillar2(info, skin.m_bridgePillarInfo2); PillarUtils.SetBridgePillar3(info, skin.m_bridgePillarInfo3); PillarUtils.SetBridgePillars(info, skin.m_bridgePillarInfos); PillarUtils.SetMiddlePillar(info, skin.m_middlePillarInfo); return(state); }