rimworld-animation-studio/Assets/Scripts/GUI/SelfContained/ActorManipulator.cs
AbstractConcept 757badf4f6 Code refactor
2022-10-27 00:56:04 -05:00

28 lines
642 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace RimWorldAnimationStudio
{
public class ActorManipulator : MonoBehaviour
{
public ActorManipulationMode actorManipulationMode;
private Image button;
public void Start()
{
button = GetComponent<Image>();
}
public void Update()
{
if (Workspace.actorManipulationMode == actorManipulationMode)
{ button.color = Constants.ColorGoldYellow; }
else
{ button.color = Constants.ColorWhite; }
}
}
}