mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Simplify
This commit is contained in:
parent
d6c8f0a6da
commit
712873b58a
@ -23,8 +23,7 @@ namespace NewHorizons.Builder.Body
|
|||||||
|
|
||||||
Mesh mesh = Icosphere.Build(4, module.scale, module.scale * 1.2f);
|
Mesh mesh = Icosphere.Build(4, module.scale, module.scale * 1.2f);
|
||||||
|
|
||||||
icosphere.AddComponent<MeshFilter>();
|
icosphere.AddComponent<MeshFilter>().mesh = mesh;
|
||||||
icosphere.GetComponent<MeshFilter>().mesh = mesh;
|
|
||||||
|
|
||||||
var cubeSphereMR = icosphere.AddComponent<MeshRenderer>();
|
var cubeSphereMR = icosphere.AddComponent<MeshRenderer>();
|
||||||
cubeSphereMR.material = new Material(Shader.Find("Standard"));
|
cubeSphereMR.material = new Material(Shader.Find("Standard"));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user