Пример #1
0
 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);
 }
Пример #2
0
        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);
        }