狗屎Minimax坏我代码

This commit is contained in:
SoulliesOfficial
2026-04-18 13:57:19 -04:00
parent 41140a2017
commit 7379583165
473 changed files with 34480 additions and 8069 deletions

View File

@@ -1,5 +1,4 @@
using System.Collections;
using System.Collections.Generic;
using SickscoreGames.HUDNavigationSystem;
using UnityEngine;
namespace SickscoreGames.ExampleScene
@@ -9,6 +8,7 @@ namespace SickscoreGames.ExampleScene
#region Variables
[Range(0f, 100f)]
public float rotationSpeed = 75f;
public Color32 initialColor = new Color(1f, .8f, 0f, .95f);
#endregion
@@ -20,5 +20,34 @@ namespace SickscoreGames.ExampleScene
transform.Rotate (0f, rotationSpeed * Time.deltaTime, 0f);
}
#endregion
#region Helper Methods
public void SetInitialPrismColor (HUDNavigationElement element)
{
// change radar color
if (element.Radar != null)
element.Radar.ChangeIconColor(initialColor);
// change compass bar color
if (element.CompassBar != null)
element.CompassBar.ChangeIconColor(initialColor);
// change indicator colors
if (element.Indicator != null)
{
element.Indicator.ChangeIconColor(initialColor);
element.Indicator.ChangeOffscreenIconColor(initialColor);
}
// change minimap color
if (element.Minimap != null)
element.Minimap.ChangeIconColor(initialColor);
// change prism material color
Renderer prismRenderer = this.GetComponent<Renderer>();
if (prismRenderer != null)
prismRenderer.material.color = initialColor;
}
#endregion
}
}