Exemple #1
0
        public void updateMesh()
        {
            if (this.sc != null)
            {
                meshIdToObject.Remove(this.getMeshId());
                this.sc.removeMeshes();
            }

            Color color = this.getMeshColor();

            this.sc             = new SphereCompleter(this.container, this.gameObject, color);
            this.meshGameObject = sc.generatePathAndMesh();
            if (this.isMeshMutated)
            {
                this.meshMutation();
            }
            meshIdToObject.Add(this.getMeshId(), this);
        }