Ejemplo n.º 1
0
        public IRenderableProduction Clone()
        {
            var clone = new DivideProduction(ParentProduction)
            {
                DivisionAxis = DivisionAxis,
                SnapToPlanes = SnapToPlanes,
                Name         = Name,
                IsOccluder   = IsOccluder,
                Divisors     = Divisors
            };

            return(clone);
        }
Ejemplo n.º 2
0
        public RegistrarProduction Divide(DivideProduction divideProduction)
        {
            if (!_finalFlag)
            {
                ChildProductions.Add(divideProduction);
                _finalFlag = true;
            }
            else
            {
                Debug.Log(string.Format("Encountered an illegal production definition: Registrar {0} already finalized, may not parse Divide production.", Name));
            }

            return(this);
        }