Esempio n. 1
0
        // Token: 0x0600423C RID: 16956 RVA: 0x00150948 File Offset: 0x0014ED48
        public override void GenerateColliderGeometry()
        {
            Mesh colliderMesh = base.GetColliderMesh();

            if (colliderMesh)
            {
                colliderMesh.Clear();
                RingPrimitive.GenerateGeometry(colliderMesh, this.radius0, this.radius1, this.segments);
                base.RefreshMeshCollider();
            }
            base.GenerateColliderGeometry();
        }
Esempio n. 2
0
        // Token: 0x0600423A RID: 16954 RVA: 0x001508C4 File Offset: 0x0014ECC4
        public void GenerateGeometry(float radius0, float radius1, int segments)
        {
            MeshFilter component = base.GetComponent <MeshFilter>();

            if (component.sharedMesh == null)
            {
                component.sharedMesh = new Mesh();
            }
            Mesh sharedMesh = component.sharedMesh;

            base.GenerationTimeMS = RingPrimitive.GenerateGeometry(sharedMesh, radius0, radius1, segments);
            this.radius0          = radius0;
            this.radius1          = radius1;
            this.segments         = segments;
            this.flipNormals      = false;
        }