Пример #1
0
        // Copy from
        public void CopyFrom(RayfireDust source)
        {
            onDemolition = source.onDemolition;
            onActivation = source.onActivation;
            onImpact     = source.onImpact;

            dustMaterial     = source.dustMaterial;
            opacity          = source.opacity;
            emissionMaterial = source.emissionMaterial;

            emission.CopyFrom(source.emission);
            dynamic.CopyFrom(source.dynamic);
            noise.CopyFrom(source.noise);
            collision.CopyFrom(source.collision);
            limitations.CopyFrom(source.limitations);
            rendering.CopyFrom(source.rendering);

            initialized = source.initialized;
        }
Пример #2
0
        // Copy from
        public void CopyFrom(RayfireDebris source)
        {
            onDemolition = source.onDemolition;
            onActivation = source.onActivation;
            onImpact     = source.onImpact;

            debrisReference  = source.debrisReference;
            debrisMaterial   = source.debrisMaterial;
            emissionMaterial = source.emissionMaterial;

            emission.CopyFrom(source.emission);
            dynamic.CopyFrom(source.dynamic);
            noise.CopyFrom(source.noise);
            collision.CopyFrom(source.collision);
            limitations.CopyFrom(source.limitations);
            rendering.CopyFrom(source.rendering);

            // Hidden
            debrisMeshList = source.debrisMeshList;
            initialized    = source.initialized;
        }