21 lines
379 B
C#
21 lines
379 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
[Serializable]
|
|
public class rotation_map_class
|
|
{
|
|
public bool active;
|
|
|
|
public image_class preimage;
|
|
|
|
public rotation_map_class()
|
|
{
|
|
preimage = new image_class();
|
|
}
|
|
|
|
public virtual float calc_rotation(Color color)
|
|
{
|
|
return (!(color == new Color(1f, 1f, 1f))) ? ((0f - color.r) * 255f + (0f - color.g) * 255f + (0f - color.b)) : 0f;
|
|
}
|
|
}
|