狗屎Minimax坏我代码
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user