This commit is contained in:
SoulliesOfficial
2025-04-19 13:51:47 -04:00
parent bb88c2a77c
commit 87e4a0aa98
17 changed files with 4800 additions and 7 deletions

View File

@@ -0,0 +1,23 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public static class ColorExtensions
{
public static Gradient DefaultGradient()
{
Gradient gradient = new Gradient();
GradientColorKey[] colorKeys = new GradientColorKey[2];
colorKeys[0].color = Color.white;
colorKeys[0].time = 0;
colorKeys[1].color = Color.white;
colorKeys[1].time = 1;
GradientAlphaKey[] alphaKeys = new GradientAlphaKey[2];
alphaKeys[0].alpha = 1;
alphaKeys[0].time = 0;
alphaKeys[1].alpha = 1;
alphaKeys[1].time = 1;
gradient.SetKeys(colorKeys, alphaKeys);
return gradient;
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: b994ac82f6ab6cd42bf64438e79d1965
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: