m
This commit is contained in:
@@ -0,0 +1,278 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
// Token: 0x02000660 RID: 1632
|
||||
[Token(Token = "0x2000660")]
|
||||
public class LineRendererTrail : CustomTrail
|
||||
{
|
||||
// Token: 0x17000849 RID: 2121
|
||||
// (get) Token: 0x06002FA9 RID: 12201 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
// (set) Token: 0x06002FAA RID: 12202 RVA: 0x000C18D0 File Offset: 0x000BFAD0
|
||||
[Token(Token = "0x17000849")]
|
||||
public override Color INCNKMHCJDM
|
||||
{
|
||||
[Token(Token = "0x6002FA9")]
|
||||
[Address(RVA = "0x158DD30", Offset = "0x158CD30", VA = "0x18158DD30", Slot = "4")]
|
||||
get
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
[Token(Token = "0x6002FAA")]
|
||||
[Address(RVA = "0x16B2190", Offset = "0x16B1190", VA = "0x1816B2190", Slot = "5")]
|
||||
set
|
||||
{
|
||||
LineRenderer[] pclmnnehlng = this.PCLMNNEHLNG;
|
||||
if (pclmnnehlng != 0)
|
||||
{
|
||||
int num = 0;
|
||||
float mojfleekjln = this.MOJFLEEKJLN;
|
||||
if (num < pclmnnehlng.Length)
|
||||
{
|
||||
pclmnnehlng[num].startColor = num;
|
||||
this.PCLMNNEHLNG[num].endColor = num;
|
||||
LineRenderer[] pclmnnehlng2 = this.PCLMNNEHLNG;
|
||||
num++;
|
||||
}
|
||||
Renderer startCap = this.startCap;
|
||||
int num2 = 0;
|
||||
int num3 = 0;
|
||||
if (startCap != num3)
|
||||
{
|
||||
Material material = this.startCap.GetMaterial();
|
||||
int oafffhbngjc = LineRendererTrail.OAFFFHBNGJC;
|
||||
material.SetColor(oafffhbngjc, num2);
|
||||
}
|
||||
Renderer endCap = this.endCap;
|
||||
int num4 = 0;
|
||||
int num5 = 0;
|
||||
if (endCap != num5)
|
||||
{
|
||||
Material material2 = this.endCap.GetMaterial();
|
||||
int oafffhbngjc2 = LineRendererTrail.OAFFFHBNGJC;
|
||||
material2.SetColor(oafffhbngjc2, num4);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700084A RID: 2122
|
||||
// (get) Token: 0x06002FAB RID: 12203 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
// (set) Token: 0x06002FAC RID: 12204 RVA: 0x000C19A0 File Offset: 0x000BFBA0
|
||||
[Token(Token = "0x1700084A")]
|
||||
public override Vector2 LEHGHMKCEKD
|
||||
{
|
||||
[Token(Token = "0x6002FAB")]
|
||||
[Address(RVA = "0xD82850", Offset = "0xD81850", VA = "0x180D82850", Slot = "6")]
|
||||
get
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
[Token(Token = "0x6002FAC")]
|
||||
[Address(RVA = "0x16B2540", Offset = "0x16B1540", VA = "0x1816B2540", Slot = "7")]
|
||||
set
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06002FAC)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void LineRendererTrail::set_Widths(UnityEngine.Vector2)
|
||||
|
||||
---> System.ArgumentOutOfRangeException: length ('-1') must be a non-negative value. (Parameter 'length')
|
||||
Actual value was -1.
|
||||
at System.ArgumentOutOfRangeException.ThrowNegative[T](T value, String paramName)
|
||||
at System.Array.CopyImpl(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
|
||||
at System.Array.Copy(Array sourceArray, Array destinationArray, Int32 length)
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstBuilder.StackAnalysis(MethodDef methodDef) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstBuilder.cs:line 403
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 117
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700084B RID: 2123
|
||||
// (get) Token: 0x06002FAD RID: 12205 RVA: 0x000C1A8C File Offset: 0x000BFC8C
|
||||
[Token(Token = "0x1700084B")]
|
||||
protected override bool ENAJHFPFFBJ
|
||||
{
|
||||
[Token(Token = "0x6002FAD")]
|
||||
[Address(RVA = "0x16B1CF0", Offset = "0x16B0CF0", VA = "0x1816B1CF0", Slot = "9")]
|
||||
get
|
||||
{
|
||||
if (!this.ONHIHPLHNML)
|
||||
{
|
||||
}
|
||||
return this.scaleTexture;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06002FAE RID: 12206 RVA: 0x000C1AAC File Offset: 0x000BFCAC
|
||||
[Token(Token = "0x6002FAE")]
|
||||
[Address(RVA = "0x16B1800", Offset = "0x16B0800", VA = "0x1816B1800", Slot = "12")]
|
||||
protected override void Awake()
|
||||
{
|
||||
LineRenderer[] array = new LineRenderer[this.materials.Length];
|
||||
this.PCLMNNEHLNG = array;
|
||||
LineRenderer[] componentsInChildren = base.GetComponentsInChildren<LineRenderer>(true);
|
||||
LineRenderer[] pclmnnehlng = this.PCLMNNEHLNG;
|
||||
int num = 0;
|
||||
int num2 = 0;
|
||||
if (num < pclmnnehlng.Length && num2 < componentsInChildren.Length)
|
||||
{
|
||||
LineRenderer lineRenderer = componentsInChildren[num2];
|
||||
if (lineRenderer != 0)
|
||||
{
|
||||
}
|
||||
pclmnnehlng[0] = lineRenderer;
|
||||
num2++;
|
||||
LineRenderer[] pclmnnehlng2 = this.PCLMNNEHLNG;
|
||||
}
|
||||
GameObject gameObject = base.gameObject;
|
||||
LineRenderer[] pclmnnehlng3 = this.PCLMNNEHLNG;
|
||||
if (num2 < pclmnnehlng3.Length)
|
||||
{
|
||||
if (num2 > 0)
|
||||
{
|
||||
Transform transform = new GameObject(this.materials[num2].name).transform;
|
||||
Transform transform2 = base.transform;
|
||||
int num3 = 0;
|
||||
transform.SetParent(transform2, num3 != 0);
|
||||
}
|
||||
LineRenderer lineRenderer2 = gameObject.AddComponent<LineRenderer>();
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
if (num2 < componentsInChildren.Length)
|
||||
{
|
||||
global::UnityEngine.Object.Destroy(componentsInChildren[num2]);
|
||||
num2++;
|
||||
}
|
||||
LineRenderer[] pclmnnehlng4 = this.PCLMNNEHLNG;
|
||||
int num4 = 0;
|
||||
int num5 = 0;
|
||||
if (num5 < pclmnnehlng4.Length)
|
||||
{
|
||||
LineRenderer lineRenderer3 = pclmnnehlng4[num4];
|
||||
Material material = global::UnityEngine.Object.Instantiate<Material>(this.materials[num4]);
|
||||
lineRenderer3.SetMaterial(material);
|
||||
Material sharedMaterial = this.PCLMNNEHLNG[num4].GetSharedMaterial();
|
||||
int oddafccfnlh = LineRendererTrail.ODDAFCCFNLH;
|
||||
Texture textureImpl = sharedMaterial.GetTextureImpl(oddafccfnlh);
|
||||
int num6 = 0;
|
||||
if (textureImpl != num6 && this.scaleTexture)
|
||||
{
|
||||
this.ONHIHPLHNML = true;
|
||||
}
|
||||
LineRenderer lineRenderer4 = this.PCLMNNEHLNG[num4];
|
||||
LineRenderer lineRenderer5 = this.PCLMNNEHLNG[num4];
|
||||
bool receiveShadows = this.receiveShadows;
|
||||
lineRenderer5.receiveShadows = receiveShadows;
|
||||
LineRenderer[] pclmnnehlng5 = this.PCLMNNEHLNG;
|
||||
num4++;
|
||||
while (pclmnnehlng5 != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
base.Awake();
|
||||
}
|
||||
|
||||
// Token: 0x06002FAF RID: 12207 RVA: 0x000C1C9C File Offset: 0x000BFE9C
|
||||
[Token(Token = "0x6002FAF")]
|
||||
[Address(RVA = "0x16B1D10", Offset = "0x16B0D10", VA = "0x1816B1D10")]
|
||||
protected void OnDestroy()
|
||||
{
|
||||
LineRenderer[] pclmnnehlng = this.PCLMNNEHLNG;
|
||||
int num = 0;
|
||||
if (num < pclmnnehlng.Length)
|
||||
{
|
||||
global::UnityEngine.Object.Destroy(pclmnnehlng[num].GetSharedMaterial());
|
||||
LineRenderer[] pclmnnehlng2 = this.PCLMNNEHLNG;
|
||||
num++;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06002FB0 RID: 12208 RVA: 0x000C1CE0 File Offset: 0x000BFEE0
|
||||
[Token(Token = "0x6002FB0")]
|
||||
[Address(RVA = "0x16B1DE0", Offset = "0x16B0DE0", VA = "0x1816B1DE0", Slot = "8")]
|
||||
protected override void PADKNHHAGDN()
|
||||
{
|
||||
int num = 0;
|
||||
if (this.PCLMNNEHLNG != num)
|
||||
{
|
||||
int num2 = this.CHMFEPLLNBI.MEPGPGKFENE;
|
||||
Vector2 zero = Vector2.zero;
|
||||
if (num2 > 0)
|
||||
{
|
||||
GPFLNFOKEIA<Vector3> chmfepllnbi = this.CHMFEPLLNBI;
|
||||
this.PADKNHHAGDN();
|
||||
float length = base.CDLLJHNCLDC;
|
||||
}
|
||||
LineRenderer[] pclmnnehlng = this.PCLMNNEHLNG;
|
||||
if (num < pclmnnehlng.Length)
|
||||
{
|
||||
pclmnnehlng[num].positionCount = num2;
|
||||
if (num2 > 0)
|
||||
{
|
||||
LineRenderer lineRenderer = this.PCLMNNEHLNG[num];
|
||||
Vector3[] ncdjhkgkfed = LineRendererTrail.NCDJHKGKFED;
|
||||
lineRenderer.SetPositions(ncdjhkgkfed);
|
||||
this.PADKNHHAGDN();
|
||||
Material sharedMaterial = this.PCLMNNEHLNG[num].GetSharedMaterial();
|
||||
int oddafccfnlh = LineRendererTrail.ODDAFCCFNLH;
|
||||
sharedMaterial.SetTextureScaleImpl(oddafccfnlh, zero);
|
||||
}
|
||||
LineRenderer[] pclmnnehlng2 = this.PCLMNNEHLNG;
|
||||
num++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06002FB1 RID: 12209 RVA: 0x000C1DA8 File Offset: 0x000BFFA8
|
||||
[Token(Token = "0x6002FB1")]
|
||||
[Address(RVA = "0x16B2160", Offset = "0x16B1160", VA = "0x1816B2160")]
|
||||
public LineRendererTrail()
|
||||
{
|
||||
Color white = Color.white;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x0400276E RID: 10094
|
||||
[Token(Token = "0x400276E")]
|
||||
private static readonly Vector3[] NCDJHKGKFED = new Vector3[128];
|
||||
|
||||
// Token: 0x0400276F RID: 10095
|
||||
[Token(Token = "0x400276F")]
|
||||
private static readonly int OAFFFHBNGJC = PAMNDKEGFFG.CCHOFPAFEHO;
|
||||
|
||||
// Token: 0x04002770 RID: 10096
|
||||
[Token(Token = "0x4002770")]
|
||||
private static readonly int ODDAFCCFNLH = PAMNDKEGFFG.BMBHIOLHCLI;
|
||||
|
||||
// Token: 0x04002771 RID: 10097
|
||||
[FieldOffset(Offset = "0x90")]
|
||||
[Token(Token = "0x4002771")]
|
||||
[SerializeField]
|
||||
[Header("Texture")]
|
||||
private bool scaleTexture;
|
||||
|
||||
// Token: 0x04002772 RID: 10098
|
||||
[FieldOffset(Offset = "0x98")]
|
||||
[Token(Token = "0x4002772")]
|
||||
private LineRenderer[] PCLMNNEHLNG;
|
||||
|
||||
// Token: 0x04002773 RID: 10099
|
||||
[FieldOffset(Offset = "0xA0")]
|
||||
[Token(Token = "0x4002773")]
|
||||
private Color HIEMIKKPMBN;
|
||||
|
||||
// Token: 0x04002774 RID: 10100
|
||||
[FieldOffset(Offset = "0xB0")]
|
||||
[Token(Token = "0x4002774")]
|
||||
private Vector2 GIEOAAOIIAH;
|
||||
|
||||
// Token: 0x04002775 RID: 10101
|
||||
[FieldOffset(Offset = "0xB8")]
|
||||
[Token(Token = "0x4002775")]
|
||||
private bool ONHIHPLHNML;
|
||||
}
|
||||
Reference in New Issue
Block a user