mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 16:27:37 +02:00
Change Project License to MIT (#700)
* license change replace unneeded package * reword this
This commit is contained in:
@ -2,7 +2,7 @@ using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using HeavenStudio.Util;
|
||||
using Starpelly;
|
||||
|
||||
|
||||
namespace HeavenStudio.Games.Scripts_MonkeyWatch
|
||||
{
|
||||
@ -52,12 +52,12 @@ namespace HeavenStudio.Games.Scripts_MonkeyWatch
|
||||
|
||||
if (realAngle <= 180)
|
||||
{
|
||||
float normalizedAngle = Mathp.Normalize(realAngle, 0, 180);
|
||||
float normalizedAngle = MathUtils.Normalize(realAngle, 0, 180);
|
||||
x = Mathf.Lerp(0, shadowXRange, normalizedAngle);
|
||||
}
|
||||
else
|
||||
{
|
||||
float normalizedAngle = Mathp.Normalize(realAngle, 180, 360);
|
||||
float normalizedAngle = MathUtils.Normalize(realAngle, 180, 360);
|
||||
x = Mathf.Lerp(shadowXRange, 0, normalizedAngle);
|
||||
}
|
||||
|
||||
@ -66,12 +66,12 @@ namespace HeavenStudio.Games.Scripts_MonkeyWatch
|
||||
|
||||
if (realAngleY <= 90)
|
||||
{
|
||||
float normalizedAngle = Mathp.Normalize(realAngleY, 0, 90);
|
||||
float normalizedAngle = MathUtils.Normalize(realAngleY, 0, 90);
|
||||
y = Mathf.Lerp(0, shadowYRange, normalizedAngle);
|
||||
}
|
||||
else
|
||||
{
|
||||
float normalizedAngle = Mathp.Normalize(realAngleY, 90, 180);
|
||||
float normalizedAngle = MathUtils.Normalize(realAngleY, 90, 180);
|
||||
y = Mathf.Lerp(shadowYRange, 0, normalizedAngle);
|
||||
}
|
||||
shadowTrans.localPosition = new Vector3(x, y);
|
||||
|
@ -2,7 +2,7 @@ using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using HeavenStudio.Util;
|
||||
using Starpelly;
|
||||
|
||||
|
||||
namespace HeavenStudio.Games.Scripts_MonkeyWatch
|
||||
{
|
||||
@ -78,10 +78,10 @@ namespace HeavenStudio.Games.Scripts_MonkeyWatch
|
||||
|
||||
private void SetArrowsToTime(int hours, int minutes, int seconds)
|
||||
{
|
||||
float normalizedHour = Mathp.Normalize(hours + (minutes / 60f) + (seconds / 3600f), 0f, 12f);
|
||||
float normalizedHour = MathUtils.Normalize(hours + (minutes / 60f) + (seconds / 3600f), 0f, 12f);
|
||||
anchorHour.localEulerAngles = new Vector3(0, 0, -Mathf.LerpUnclamped(0, 360, normalizedHour));
|
||||
|
||||
float normalizedMinute = Mathp.Normalize(minutes + (seconds / 60f), 0, 60);
|
||||
float normalizedMinute = MathUtils.Normalize(minutes + (seconds / 60f), 0, 60);
|
||||
anchorMinute.localEulerAngles = new Vector3(0, 0, -Mathf.LerpUnclamped(0, 360, normalizedMinute));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user