Fix z-index. Pull up z-index to MeshBase.

This commit is contained in:
2022-11-18 09:58:01 +08:00
parent 79bfd6764c
commit bf942cbe45
5 changed files with 42 additions and 21 deletions

View File

@@ -5,11 +5,10 @@ using System.Collections.Generic;
using UnityEngine;
namespace Cryville.Crtr.Components {
public abstract class SectionalGameObject : SkinComponent {
public abstract class SectionalGameObject : MeshBase {
protected Vector3? prevpt;
protected Quaternion? prevrot;
protected int vertCount = 0;
protected MeshWrapper mesh = new MeshWrapper();
protected override void OnDestroy() {
mesh.Destroy();