Fix mesh.color not working on polysec.

This commit is contained in:
2023-04-20 19:40:12 +08:00
parent e5956f2b34
commit 69fe03475b
3 changed files with 4 additions and 4 deletions

View File

@@ -59,7 +59,6 @@ namespace Cryville.Crtr.Components {
float sumLength = 0;
public override void Init() {
base.Init();
mesh.Init(transform);
mesh.Mesh = new Mesh();
@@ -72,7 +71,7 @@ namespace Cryville.Crtr.Components {
body.Bind(materials[1]);
tail.Bind(materials[2]);
UpdateZIndex();
base.Init();
}
protected override void OnDestroy() {