コード例 #1
0
        /// <summary>
        /// Creates and returns a copy of this object. The materials are shallow copied, everything else is
        /// deep copied.
        /// </summary>
        public CaveConfiguration Clone()
        {
            CaveConfiguration copy = (CaveConfiguration)MemberwiseClone();

            copy.mapParameters = mapParameters.Clone();
            return(copy);
        }
コード例 #2
0
        internal Cave(CollisionTester collisionTester, IEnumerable <CaveMeshes> caveMeshes, CaveConfiguration caveConfiguration)
        {
            Assert.IsNotNull(collisionTester);
            Assert.IsNotNull(caveMeshes);
            Assert.IsNotNull(caveConfiguration);

            Configuration   = caveConfiguration.Clone();
            GameObject      = new GameObject("Cave");
            CollisionTester = collisionTester;
            BuildSectors(caveMeshes);
        }
コード例 #3
0
 void Reset()
 {
     config = new CaveConfiguration();
 }