mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Got some proc gen materials for later
This commit is contained in:
parent
8d1f5c3bee
commit
ba2a9722fb
@ -12,8 +12,15 @@ namespace NewHorizons.Builder.Body
|
|||||||
{
|
{
|
||||||
public static class ProcGenBuilder
|
public static class ProcGenBuilder
|
||||||
{
|
{
|
||||||
|
private static Material quantumMaterial;
|
||||||
|
private static Material iceMaterial;
|
||||||
|
|
||||||
public static void Make(GameObject planetGO, Sector sector, ProcGenModule module)
|
public static void Make(GameObject planetGO, Sector sector, ProcGenModule module)
|
||||||
{
|
{
|
||||||
|
if(quantumMaterial == null) quantumMaterial = SearchUtilities.FindResourceOfTypeAndName<Material>("Rock_QM_EyeRock_mat");
|
||||||
|
if(iceMaterial == null) iceMaterial = SearchUtilities.FindResourceOfTypeAndName<Material>("Rock_BH_IceSpike_mat");
|
||||||
|
|
||||||
|
|
||||||
GameObject icosphere = new GameObject("Icosphere");
|
GameObject icosphere = new GameObject("Icosphere");
|
||||||
icosphere.transform.parent = sector?.transform ?? planetGO.transform;
|
icosphere.transform.parent = sector?.transform ?? planetGO.transform;
|
||||||
icosphere.transform.rotation = Quaternion.Euler(90, 0, 0);
|
icosphere.transform.rotation = Quaternion.Euler(90, 0, 0);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user