Change Project License to MIT (#700)

* license change

replace unneeded package

* reword this
This commit is contained in:
minenice55
2024-02-16 01:17:16 -05:00
committed by GitHub
parent 172e3850a5
commit dd9a06ad52
153 changed files with 167 additions and 5439 deletions

View File

@ -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);

View File

@ -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));
}
}