Aimbot Enviroment very first

Basic environment include Multi scene, Reward Change, Visible chart, etc....
This commit is contained in:
2022-09-05 20:46:08 +09:00
parent aa337c5fc2
commit 2d404cfdf2
1552 changed files with 162551 additions and 0 deletions
@@ -0,0 +1,51 @@
using UnityEngine;
using UnityEngine.UI;
using XUGL;
namespace XCharts.Runtime
{
[ExecuteInEditMode]
[RequireComponent(typeof(RectTransform))]
[DisallowMultipleComponent]
public class ProgressBar : BaseChart
{
[SerializeField][Range(0f, 1f)] private float m_Value = 0.5f;
[SerializeField] private Color m_BackgroundColor = new Color32(255, 233, 233, 255);
[SerializeField] private Color m_StartColor = Color.blue;
[SerializeField] private Color m_EndColor = Color.red;
[SerializeField] private float[] m_CornerRadius = new float[] { 0, 0, 0, 0 };
public float value { get { return m_Value; } set { m_Value = value; SetVerticesDirty(); } }
public Color32 backgroundColor { get { return m_BackgroundColor; } set { m_BackgroundColor = value; SetVerticesDirty(); } }
public Color32 startColor { get { return m_StartColor; } set { m_StartColor = value; SetVerticesDirty(); } }
public Color32 endColor { get { return m_EndColor; } set { m_EndColor = value; SetVerticesDirty(); } }
public float[] cornerRadius { get { return m_CornerRadius; } set { m_CornerRadius = value; SetVerticesDirty(); } }
#if UNITY_EDITOR
protected override void Reset()
{
base.Reset();
var title = GetOrAddChartComponent<Title>();
title.text = "ProgressBar";
title.show = false;
SetSize(580, 4);
RemoveData();
}
#endif
protected override void OnDrawPainterBase(VertexHelper vh, Painter painter)
{
vh.Clear();
var centerPos = new Vector3(chartPosition.x + m_ChartWidth / 2, chartPosition.y + m_ChartHeight / 2);
UGL.DrawRoundRectangle(vh, centerPos, m_ChartWidth, m_ChartHeight, m_BackgroundColor, m_BackgroundColor,
0, m_CornerRadius, true);
var valueWidth = m_Value * m_ChartWidth;
var valuePos = new Vector3(chartPosition.x + valueWidth / 2, centerPos.y);
var endColor = Color.Lerp(m_StartColor, m_EndColor, m_Value);
UGL.DrawRoundRectangle(vh, valuePos, valueWidth, m_ChartHeight, m_StartColor, endColor, 0,
m_CornerRadius, true);
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: cd18af5634e604a3c97fb1ff0fc5d682
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,33 @@
using UnityEngine;
using UnityEngine.UI;
using XUGL;
namespace XCharts.Runtime
{
[ExecuteInEditMode]
public class SVGImage : MaskableGraphic
{
[SerializeField] private bool m_MirrorY;
[SerializeField] private string m_SVGPath;
private SVGPath m_Path;
public string svgPath { set { m_SVGPath = value; } get { return m_SVGPath; } }
public bool mirrorY { set { m_MirrorY = value; } get { return m_MirrorY; } }
protected override void Awake()
{
base.Awake();
m_Path = SVGPath.Parse(m_SVGPath);
m_Path.mirrorY = m_MirrorY;
}
protected override void OnPopulateMesh(VertexHelper vh)
{
vh.Clear();
if (m_Path != null)
m_Path.Draw(vh);
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: fe10ee35a038646b6aedfffb30f84024
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: