/// <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); }
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); }
void Reset() { config = new CaveConfiguration(); }