mirror of
https://gitgud.io/AbstractConcept/rimworld-animation-studio.git
synced 2024-08-15 00:43:27 +00:00
Code refactor
This commit is contained in:
parent
e14a12f2ab
commit
af4dab5546
278 changed files with 468 additions and 668 deletions
28
Assets/Scripts/GUI/ActorManipulator.cs
Normal file
28
Assets/Scripts/GUI/ActorManipulator.cs
Normal file
|
@ -0,0 +1,28 @@
|
|||
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; }
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue