mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-18 01:14:59 +01:00
27 lines
510 B
C#
27 lines
510 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
namespace MoleMole.MainMenu
|
|
{
|
|
[Serializable]
|
|
public class ConfigIndoor
|
|
{
|
|
public Color TintColor;
|
|
|
|
public static ConfigIndoor Lerp(ConfigIndoor config1, ConfigIndoor config2, float t)
|
|
{
|
|
ConfigIndoor configIndoor = new ConfigIndoor();
|
|
configIndoor.TintColor = Color.Lerp(config1.TintColor, config2.TintColor, t);
|
|
return configIndoor;
|
|
}
|
|
|
|
public void CopyFrom(ConfigIndoor other)
|
|
{
|
|
if (other != null)
|
|
{
|
|
TintColor = other.TintColor;
|
|
}
|
|
}
|
|
}
|
|
}
|