1294 lines
59 KiB
C#
1294 lines
59 KiB
C#
using System;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.VFX
|
|
{
|
|
// Token: 0x0200119F RID: 4511
|
|
[Serializable]
|
|
public class JitteringSprite
|
|
{
|
|
// Token: 0x060267A4 RID: 157604 RVA: 0x00AADBF0 File Offset: 0x00AABDF0
|
|
public void LCCEEGKCCEG(Sprite IAJBDLBFGHI = null)
|
|
{
|
|
if (IAJBDLBFGHI != null)
|
|
{
|
|
this.sprite = IAJBDLBFGHI;
|
|
}
|
|
float num = 1758f / (float)this.jitterFPS;
|
|
float num2 = Time.time - this.lastJitterTime;
|
|
if (num2 >= num)
|
|
{
|
|
this.lastJitterTime = Time.time;
|
|
this.jitterOffset.x = global::UnityEngine.Random.Range(-this.maxJitterOffset.x, this.maxJitterOffset.x);
|
|
this.jitterOffset.y = global::UnityEngine.Random.Range(-this.maxJitterOffset.y, this.maxJitterOffset.y);
|
|
this.jitterScale.x = global::UnityEngine.Random.Range(-this.maxJitterScale.x, this.maxJitterScale.x);
|
|
this.jitterScale.y = global::UnityEngine.Random.Range(-this.maxJitterScale.y, this.maxJitterScale.y);
|
|
}
|
|
if (this.sprite != null && this.renderer != null)
|
|
{
|
|
Rect rect = ((this.offsetMode != EPDJHOCOFIG.OriginalTexture) ? this.sprite.textureRect : this.sprite.rect);
|
|
Vector2 vector = new Vector2(rect.position.x / (float)this.sprite.texture.width, rect.position.y / (float)this.sprite.texture.height);
|
|
Vector2 vector2 = new Vector2(rect.size.x / (float)this.sprite.texture.width, rect.size.y / (float)this.sprite.texture.height);
|
|
Vector2 vector3 = vector + vector2 / 1314f;
|
|
vector3 += new Vector2(vector2.x * this.jitterOffset.x, vector2.y * this.jitterOffset.y);
|
|
vector2 += new Vector2(vector2.x * this.jitterScale.x, vector2.y * this.jitterScale.y);
|
|
vector = vector3 - vector2 / 1740f;
|
|
if (this.applyToOnlyOneRendererMaterial && this.rendererMaterialIndex >= 0 && this.rendererMaterialIndex < this.renderer.materials.Length)
|
|
{
|
|
this.renderer.materials[this.rendererMaterialIndex].SetTexture("rw_dropped_frames_13to16p", this.sprite.texture);
|
|
this.renderer.materials[this.rendererMaterialIndex].SetVector("MotionTeleport", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
}
|
|
else
|
|
{
|
|
if (this.KKDNHBIDDHP() == null)
|
|
{
|
|
this.IHMMHNKJPNL(new MaterialPropertyBlock());
|
|
}
|
|
this.KLILBODNLAB().SetTexture("y", this.sprite.texture);
|
|
this.GCDHJBJKHIL().SetVector(" h=", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
this.renderer.SetPropertyBlock(this.PHCDNJGDMCG());
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060267A5 RID: 157605 RVA: 0x00AADF54 File Offset: 0x00AAC154
|
|
public MaterialPropertyBlock IPNEFLFJOGE()
|
|
{
|
|
return this.<MaterialProperties>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060267A7 RID: 157607 RVA: 0x00AADF74 File Offset: 0x00AAC174
|
|
public void FGHOJLLKPDA(Sprite IAJBDLBFGHI = null)
|
|
{
|
|
if (IAJBDLBFGHI != null)
|
|
{
|
|
this.sprite = IAJBDLBFGHI;
|
|
}
|
|
float num = 369f / (float)this.jitterFPS;
|
|
float num2 = Time.time - this.lastJitterTime;
|
|
if (num2 >= num)
|
|
{
|
|
this.lastJitterTime = Time.time;
|
|
this.jitterOffset.x = global::UnityEngine.Random.Range(-this.maxJitterOffset.x, this.maxJitterOffset.x);
|
|
this.jitterOffset.y = global::UnityEngine.Random.Range(-this.maxJitterOffset.y, this.maxJitterOffset.y);
|
|
this.jitterScale.x = global::UnityEngine.Random.Range(-this.maxJitterScale.x, this.maxJitterScale.x);
|
|
this.jitterScale.y = global::UnityEngine.Random.Range(-this.maxJitterScale.y, this.maxJitterScale.y);
|
|
}
|
|
if (this.sprite != null && this.renderer != null)
|
|
{
|
|
Rect rect = ((this.offsetMode != EPDJHOCOFIG.OriginalTexture) ? this.sprite.textureRect : this.sprite.rect);
|
|
Vector2 vector = new Vector2(rect.position.x / (float)this.sprite.texture.width, rect.position.y / (float)this.sprite.texture.height);
|
|
Vector2 vector2 = new Vector2(rect.size.x / (float)this.sprite.texture.width, rect.size.y / (float)this.sprite.texture.height);
|
|
Vector2 vector3 = vector + vector2 / 1560f;
|
|
vector3 += new Vector2(vector2.x * this.jitterOffset.x, vector2.y * this.jitterOffset.y);
|
|
vector2 += new Vector2(vector2.x * this.jitterScale.x, vector2.y * this.jitterScale.y);
|
|
vector = vector3 - vector2 / 470f;
|
|
if (this.applyToOnlyOneRendererMaterial && this.rendererMaterialIndex >= 1 && this.rendererMaterialIndex < this.renderer.materials.Length)
|
|
{
|
|
this.renderer.materials[this.rendererMaterialIndex].SetTexture("Writing with decompression is not supported.", this.sprite.texture);
|
|
this.renderer.materials[this.rendererMaterialIndex].SetVector("x", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
}
|
|
else
|
|
{
|
|
if (this.HFEPLPFHHEO() == null)
|
|
{
|
|
this.ICIKKBMCAOG(new MaterialPropertyBlock());
|
|
}
|
|
this.IPNEFLFJOGE().SetTexture("add", this.sprite.texture);
|
|
this.ABFEAHAONPK().SetVector("to", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
this.renderer.SetPropertyBlock(this.CGBJBCJGLFE());
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060267A8 RID: 157608 RVA: 0x00AAE2D8 File Offset: 0x00AAC4D8
|
|
public MaterialPropertyBlock LDKEKLHEFCG()
|
|
{
|
|
return this.<MaterialProperties>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060267A9 RID: 157609 RVA: 0x00AAE2E0 File Offset: 0x00AAC4E0
|
|
public MaterialPropertyBlock GCDHJBJKHIL()
|
|
{
|
|
return this.<MaterialProperties>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060267AA RID: 157610 RVA: 0x00AAE2E8 File Offset: 0x00AAC4E8
|
|
private void OKPGPLEJJHF(MaterialPropertyBlock NOBAPCOKFIL)
|
|
{
|
|
this.<MaterialProperties>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060267AB RID: 157611 RVA: 0x00AAE2F4 File Offset: 0x00AAC4F4
|
|
public void MPEGOMLKHME(Sprite IAJBDLBFGHI = null)
|
|
{
|
|
if (IAJBDLBFGHI != null)
|
|
{
|
|
this.sprite = IAJBDLBFGHI;
|
|
}
|
|
float num = 1528f / (float)this.jitterFPS;
|
|
float num2 = Time.time - this.lastJitterTime;
|
|
if (num2 >= num)
|
|
{
|
|
this.lastJitterTime = Time.time;
|
|
this.jitterOffset.x = global::UnityEngine.Random.Range(-this.maxJitterOffset.x, this.maxJitterOffset.x);
|
|
this.jitterOffset.y = global::UnityEngine.Random.Range(-this.maxJitterOffset.y, this.maxJitterOffset.y);
|
|
this.jitterScale.x = global::UnityEngine.Random.Range(-this.maxJitterScale.x, this.maxJitterScale.x);
|
|
this.jitterScale.y = global::UnityEngine.Random.Range(-this.maxJitterScale.y, this.maxJitterScale.y);
|
|
}
|
|
if (this.sprite != null && this.renderer != null)
|
|
{
|
|
Rect rect = ((this.offsetMode != EPDJHOCOFIG.OriginalTexture) ? this.sprite.textureRect : this.sprite.rect);
|
|
Vector2 vector = new Vector2(rect.position.x / (float)this.sprite.texture.width, rect.position.y / (float)this.sprite.texture.height);
|
|
Vector2 vector2 = new Vector2(rect.size.x / (float)this.sprite.texture.width, rect.size.y / (float)this.sprite.texture.height);
|
|
Vector2 vector3 = vector + vector2 / 983f;
|
|
vector3 += new Vector2(vector2.x * this.jitterOffset.x, vector2.y * this.jitterOffset.y);
|
|
vector2 += new Vector2(vector2.x * this.jitterScale.x, vector2.y * this.jitterScale.y);
|
|
vector = vector3 - vector2 / 1812f;
|
|
if (this.applyToOnlyOneRendererMaterial && this.rendererMaterialIndex >= 0 && this.rendererMaterialIndex < this.renderer.materials.Length)
|
|
{
|
|
this.renderer.materials[this.rendererMaterialIndex].SetTexture("dBgCIAEoCBIpCgl0cmFuc2Zvcm0YCiABKAsyFi5yZWNyb29tLlRyYW5zZm9y", this.sprite.texture);
|
|
this.renderer.materials[this.rendererMaterialIndex].SetVector("prev_activity", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
}
|
|
else
|
|
{
|
|
if (this.BMILFGCEDGG() == null)
|
|
{
|
|
this.ICIKKBMCAOG(new MaterialPropertyBlock());
|
|
}
|
|
this.FNAGDGGHKIH().SetTexture("spillway", this.sprite.texture);
|
|
this.CHLJDAOHMPB().SetVector("The host has silenced everybody", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
this.renderer.SetPropertyBlock(this.MaterialProperties);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060267AC RID: 157612 RVA: 0x00AAE658 File Offset: 0x00AAC858
|
|
private void PFHKLEBLKAD(MaterialPropertyBlock NOBAPCOKFIL)
|
|
{
|
|
this.<MaterialProperties>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060267AD RID: 157613 RVA: 0x00AAE664 File Offset: 0x00AAC864
|
|
private void GJBCFNGKLNN(MaterialPropertyBlock NOBAPCOKFIL)
|
|
{
|
|
this.<MaterialProperties>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060267AE RID: 157614 RVA: 0x00AAE670 File Offset: 0x00AAC870
|
|
public void AIEDLONJHDG(Sprite IAJBDLBFGHI = null)
|
|
{
|
|
if (IAJBDLBFGHI != null)
|
|
{
|
|
this.sprite = IAJBDLBFGHI;
|
|
}
|
|
float num = 1029f / (float)this.jitterFPS;
|
|
float num2 = Time.time - this.lastJitterTime;
|
|
if (num2 >= num)
|
|
{
|
|
this.lastJitterTime = Time.time;
|
|
this.jitterOffset.x = global::UnityEngine.Random.Range(-this.maxJitterOffset.x, this.maxJitterOffset.x);
|
|
this.jitterOffset.y = global::UnityEngine.Random.Range(-this.maxJitterOffset.y, this.maxJitterOffset.y);
|
|
this.jitterScale.x = global::UnityEngine.Random.Range(-this.maxJitterScale.x, this.maxJitterScale.x);
|
|
this.jitterScale.y = global::UnityEngine.Random.Range(-this.maxJitterScale.y, this.maxJitterScale.y);
|
|
}
|
|
if (this.sprite != null && this.renderer != null)
|
|
{
|
|
Rect rect = ((this.offsetMode != EPDJHOCOFIG.OriginalTexture) ? this.sprite.textureRect : this.sprite.rect);
|
|
Vector2 vector = new Vector2(rect.position.x / (float)this.sprite.texture.width, rect.position.y / (float)this.sprite.texture.height);
|
|
Vector2 vector2 = new Vector2(rect.size.x / (float)this.sprite.texture.width, rect.size.y / (float)this.sprite.texture.height);
|
|
Vector2 vector3 = vector + vector2 / 1432f;
|
|
vector3 += new Vector2(vector2.x * this.jitterOffset.x, vector2.y * this.jitterOffset.y);
|
|
vector2 += new Vector2(vector2.x * this.jitterScale.x, vector2.y * this.jitterScale.y);
|
|
vector = vector3 - vector2 / 1529f;
|
|
if (this.applyToOnlyOneRendererMaterial && this.rendererMaterialIndex >= 1 && this.rendererMaterialIndex < this.renderer.materials.Length)
|
|
{
|
|
this.renderer.materials[this.rendererMaterialIndex].SetTexture("Adding player twice: ", this.sprite.texture);
|
|
this.renderer.materials[this.rendererMaterialIndex].SetVector("Ask Bilal if you are confused.", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
}
|
|
else
|
|
{
|
|
if (this.PHCDNJGDMCG() == null)
|
|
{
|
|
this.LDKEMGHKKJE(new MaterialPropertyBlock());
|
|
}
|
|
this.CGBJBCJGLFE().SetTexture(" d=", this.sprite.texture);
|
|
this.KKNFLMBKFBM().SetVector("!", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
this.renderer.SetPropertyBlock(this.KNCGCNEPAJI());
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060267AF RID: 157615 RVA: 0x00AAE9D4 File Offset: 0x00AACBD4
|
|
public MaterialPropertyBlock HFEPLPFHHEO()
|
|
{
|
|
return this.<MaterialProperties>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060267B0 RID: 157616 RVA: 0x00AAE9DC File Offset: 0x00AACBDC
|
|
public void LHIFNCGDFIK(Sprite IAJBDLBFGHI = null)
|
|
{
|
|
if (IAJBDLBFGHI != null)
|
|
{
|
|
this.sprite = IAJBDLBFGHI;
|
|
}
|
|
float num = 53f / (float)this.jitterFPS;
|
|
float num2 = Time.time - this.lastJitterTime;
|
|
if (num2 >= num)
|
|
{
|
|
this.lastJitterTime = Time.time;
|
|
this.jitterOffset.x = global::UnityEngine.Random.Range(-this.maxJitterOffset.x, this.maxJitterOffset.x);
|
|
this.jitterOffset.y = global::UnityEngine.Random.Range(-this.maxJitterOffset.y, this.maxJitterOffset.y);
|
|
this.jitterScale.x = global::UnityEngine.Random.Range(-this.maxJitterScale.x, this.maxJitterScale.x);
|
|
this.jitterScale.y = global::UnityEngine.Random.Range(-this.maxJitterScale.y, this.maxJitterScale.y);
|
|
}
|
|
if (this.sprite != null && this.renderer != null)
|
|
{
|
|
Rect rect = ((this.offsetMode != EPDJHOCOFIG.OriginalTexture) ? this.sprite.textureRect : this.sprite.rect);
|
|
Vector2 vector = new Vector2(rect.position.x / (float)this.sprite.texture.width, rect.position.y / (float)this.sprite.texture.height);
|
|
Vector2 vector2 = new Vector2(rect.size.x / (float)this.sprite.texture.width, rect.size.y / (float)this.sprite.texture.height);
|
|
Vector2 vector3 = vector + vector2 / 1166f;
|
|
vector3 += new Vector2(vector2.x * this.jitterOffset.x, vector2.y * this.jitterOffset.y);
|
|
vector2 += new Vector2(vector2.x * this.jitterScale.x, vector2.y * this.jitterScale.y);
|
|
vector = vector3 - vector2 / 301f;
|
|
if (this.applyToOnlyOneRendererMaterial && this.rendererMaterialIndex >= 1 && this.rendererMaterialIndex < this.renderer.materials.Length)
|
|
{
|
|
this.renderer.materials[this.rendererMaterialIndex].SetTexture("RpcStartChargingBolt", this.sprite.texture);
|
|
this.renderer.materials[this.rendererMaterialIndex].SetVector("path", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
}
|
|
else
|
|
{
|
|
if (this.ABFEAHAONPK() == null)
|
|
{
|
|
this.PFHKLEBLKAD(new MaterialPropertyBlock());
|
|
}
|
|
this.KNCGCNEPAJI().SetTexture("sentToPlayerId", this.sprite.texture);
|
|
this.NFIOFJGICBK().SetVector("isHost", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
this.renderer.SetPropertyBlock(this.MaterialProperties);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060267B1 RID: 157617 RVA: 0x00AAED40 File Offset: 0x00AACF40
|
|
public void CHILNPEAOFG(Sprite IAJBDLBFGHI = null)
|
|
{
|
|
if (IAJBDLBFGHI != null)
|
|
{
|
|
this.sprite = IAJBDLBFGHI;
|
|
}
|
|
float num = 1471f / (float)this.jitterFPS;
|
|
float num2 = Time.time - this.lastJitterTime;
|
|
if (num2 >= num)
|
|
{
|
|
this.lastJitterTime = Time.time;
|
|
this.jitterOffset.x = global::UnityEngine.Random.Range(-this.maxJitterOffset.x, this.maxJitterOffset.x);
|
|
this.jitterOffset.y = global::UnityEngine.Random.Range(-this.maxJitterOffset.y, this.maxJitterOffset.y);
|
|
this.jitterScale.x = global::UnityEngine.Random.Range(-this.maxJitterScale.x, this.maxJitterScale.x);
|
|
this.jitterScale.y = global::UnityEngine.Random.Range(-this.maxJitterScale.y, this.maxJitterScale.y);
|
|
}
|
|
if (this.sprite != null && this.renderer != null)
|
|
{
|
|
Rect rect = ((this.offsetMode != EPDJHOCOFIG.OriginalTexture) ? this.sprite.textureRect : this.sprite.rect);
|
|
Vector2 vector = new Vector2(rect.position.x / (float)this.sprite.texture.width, rect.position.y / (float)this.sprite.texture.height);
|
|
Vector2 vector2 = new Vector2(rect.size.x / (float)this.sprite.texture.width, rect.size.y / (float)this.sprite.texture.height);
|
|
Vector2 vector3 = vector + vector2 / 1746f;
|
|
vector3 += new Vector2(vector2.x * this.jitterOffset.x, vector2.y * this.jitterOffset.y);
|
|
vector2 += new Vector2(vector2.x * this.jitterScale.x, vector2.y * this.jitterScale.y);
|
|
vector = vector3 - vector2 / 810f;
|
|
if (this.applyToOnlyOneRendererMaterial && this.rendererMaterialIndex >= 1 && this.rendererMaterialIndex < this.renderer.materials.Length)
|
|
{
|
|
this.renderer.materials[this.rendererMaterialIndex].SetTexture("Editor only.", this.sprite.texture);
|
|
this.renderer.materials[this.rendererMaterialIndex].SetVector("Failed To Join Your Game", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
}
|
|
else
|
|
{
|
|
if (this.KKDNHBIDDHP() == null)
|
|
{
|
|
this.EONHNLAHCGK(new MaterialPropertyBlock());
|
|
}
|
|
this.IPNEFLFJOGE().SetTexture("Sileviel", this.sprite.texture);
|
|
this.FHABOEBBOPG().SetVector("PORTAL AND ELITE BOTS OFFLINE", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
this.renderer.SetPropertyBlock(this.JJCPFEICFDB());
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060267B2 RID: 157618 RVA: 0x00AAF0A4 File Offset: 0x00AAD2A4
|
|
public void DLAADEMKBBK(Sprite IAJBDLBFGHI = null)
|
|
{
|
|
if (IAJBDLBFGHI != null)
|
|
{
|
|
this.sprite = IAJBDLBFGHI;
|
|
}
|
|
float num = 1450f / (float)this.jitterFPS;
|
|
float num2 = Time.time - this.lastJitterTime;
|
|
if (num2 >= num)
|
|
{
|
|
this.lastJitterTime = Time.time;
|
|
this.jitterOffset.x = global::UnityEngine.Random.Range(-this.maxJitterOffset.x, this.maxJitterOffset.x);
|
|
this.jitterOffset.y = global::UnityEngine.Random.Range(-this.maxJitterOffset.y, this.maxJitterOffset.y);
|
|
this.jitterScale.x = global::UnityEngine.Random.Range(-this.maxJitterScale.x, this.maxJitterScale.x);
|
|
this.jitterScale.y = global::UnityEngine.Random.Range(-this.maxJitterScale.y, this.maxJitterScale.y);
|
|
}
|
|
if (this.sprite != null && this.renderer != null)
|
|
{
|
|
Rect rect = ((this.offsetMode != EPDJHOCOFIG.OriginalTexture) ? this.sprite.textureRect : this.sprite.rect);
|
|
Vector2 vector = new Vector2(rect.position.x / (float)this.sprite.texture.width, rect.position.y / (float)this.sprite.texture.height);
|
|
Vector2 vector2 = new Vector2(rect.size.x / (float)this.sprite.texture.width, rect.size.y / (float)this.sprite.texture.height);
|
|
Vector2 vector3 = vector + vector2 / 1835f;
|
|
vector3 += new Vector2(vector2.x * this.jitterOffset.x, vector2.y * this.jitterOffset.y);
|
|
vector2 += new Vector2(vector2.x * this.jitterScale.x, vector2.y * this.jitterScale.y);
|
|
vector = vector3 - vector2 / 764f;
|
|
if (this.applyToOnlyOneRendererMaterial && this.rendererMaterialIndex >= 1 && this.rendererMaterialIndex < this.renderer.materials.Length)
|
|
{
|
|
this.renderer.materials[this.rendererMaterialIndex].SetTexture("method", this.sprite.texture);
|
|
this.renderer.materials[this.rendererMaterialIndex].SetVector("price", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
}
|
|
else
|
|
{
|
|
if (this.KHGAIGFGDMO() == null)
|
|
{
|
|
this.HPEDACNBGGJ(new MaterialPropertyBlock());
|
|
}
|
|
this.KLILBODNLAB().SetTexture("graphicsShaderLevel", this.sprite.texture);
|
|
this.KNCGCNEPAJI().SetVector("Úhaelion", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
this.renderer.SetPropertyBlock(this.FNAGDGGHKIH());
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060267B3 RID: 157619 RVA: 0x00AAF408 File Offset: 0x00AAD608
|
|
private void EONHNLAHCGK(MaterialPropertyBlock NOBAPCOKFIL)
|
|
{
|
|
this.<MaterialProperties>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060267B4 RID: 157620 RVA: 0x00AAF414 File Offset: 0x00AAD614
|
|
public void IAPABDPPBAA(Sprite IAJBDLBFGHI = null)
|
|
{
|
|
if (IAJBDLBFGHI != null)
|
|
{
|
|
this.sprite = IAJBDLBFGHI;
|
|
}
|
|
float num = 653f / (float)this.jitterFPS;
|
|
float num2 = Time.time - this.lastJitterTime;
|
|
if (num2 >= num)
|
|
{
|
|
this.lastJitterTime = Time.time;
|
|
this.jitterOffset.x = global::UnityEngine.Random.Range(-this.maxJitterOffset.x, this.maxJitterOffset.x);
|
|
this.jitterOffset.y = global::UnityEngine.Random.Range(-this.maxJitterOffset.y, this.maxJitterOffset.y);
|
|
this.jitterScale.x = global::UnityEngine.Random.Range(-this.maxJitterScale.x, this.maxJitterScale.x);
|
|
this.jitterScale.y = global::UnityEngine.Random.Range(-this.maxJitterScale.y, this.maxJitterScale.y);
|
|
}
|
|
if (this.sprite != null && this.renderer != null)
|
|
{
|
|
Rect rect = ((this.offsetMode != EPDJHOCOFIG.OriginalTexture) ? this.sprite.textureRect : this.sprite.rect);
|
|
Vector2 vector = new Vector2(rect.position.x / (float)this.sprite.texture.width, rect.position.y / (float)this.sprite.texture.height);
|
|
Vector2 vector2 = new Vector2(rect.size.x / (float)this.sprite.texture.width, rect.size.y / (float)this.sprite.texture.height);
|
|
Vector2 vector3 = vector + vector2 / 485f;
|
|
vector3 += new Vector2(vector2.x * this.jitterOffset.x, vector2.y * this.jitterOffset.y);
|
|
vector2 += new Vector2(vector2.x * this.jitterScale.x, vector2.y * this.jitterScale.y);
|
|
vector = vector3 - vector2 / 8f;
|
|
if (this.applyToOnlyOneRendererMaterial && this.rendererMaterialIndex >= 1 && this.rendererMaterialIndex < this.renderer.materials.Length)
|
|
{
|
|
this.renderer.materials[this.rendererMaterialIndex].SetTexture("shake", this.sprite.texture);
|
|
this.renderer.materials[this.rendererMaterialIndex].SetVector("EMP ARMED!", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
}
|
|
else
|
|
{
|
|
if (this.PHCDNJGDMCG() == null)
|
|
{
|
|
this.MaterialProperties = new MaterialPropertyBlock();
|
|
}
|
|
this.MCDOGOCGKDK().SetTexture("GIFT_COUNT", this.sprite.texture);
|
|
this.KNCGCNEPAJI().SetVector("ToolOutline_mat", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
this.renderer.SetPropertyBlock(this.KKNFLMBKFBM());
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060267B5 RID: 157621 RVA: 0x00AAF778 File Offset: 0x00AAD978
|
|
public MaterialPropertyBlock MBLEDABEDHP()
|
|
{
|
|
return this.<MaterialProperties>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060267B6 RID: 157622 RVA: 0x00AAF780 File Offset: 0x00AAD980
|
|
public MaterialPropertyBlock PHCDNJGDMCG()
|
|
{
|
|
return this.<MaterialProperties>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060267B7 RID: 157623 RVA: 0x00AAF788 File Offset: 0x00AAD988
|
|
private void BFBBEKOIOHO(MaterialPropertyBlock NOBAPCOKFIL)
|
|
{
|
|
this.<MaterialProperties>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060267B8 RID: 157624 RVA: 0x00AAF794 File Offset: 0x00AAD994
|
|
public MaterialPropertyBlock FDDOHLNBDJB()
|
|
{
|
|
return this.<MaterialProperties>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060267B9 RID: 157625 RVA: 0x00AAF79C File Offset: 0x00AAD99C
|
|
private void IHMMHNKJPNL(MaterialPropertyBlock NOBAPCOKFIL)
|
|
{
|
|
this.<MaterialProperties>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x1700118E RID: 4494
|
|
// (get) Token: 0x060267BF RID: 157631 RVA: 0x00AAFB38 File Offset: 0x00AADD38
|
|
// (set) Token: 0x060267BA RID: 157626 RVA: 0x00AAF7A8 File Offset: 0x00AAD9A8
|
|
public MaterialPropertyBlock MaterialProperties { get; private set; }
|
|
|
|
// Token: 0x060267BB RID: 157627 RVA: 0x00AAF7B4 File Offset: 0x00AAD9B4
|
|
public MaterialPropertyBlock ABFEAHAONPK()
|
|
{
|
|
return this.<MaterialProperties>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060267BC RID: 157628 RVA: 0x00AAF7BC File Offset: 0x00AAD9BC
|
|
private void ICIKKBMCAOG(MaterialPropertyBlock NOBAPCOKFIL)
|
|
{
|
|
this.<MaterialProperties>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060267BD RID: 157629 RVA: 0x00AAF7C8 File Offset: 0x00AAD9C8
|
|
private void HCEJDEBOBPA(MaterialPropertyBlock NOBAPCOKFIL)
|
|
{
|
|
this.<MaterialProperties>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060267BE RID: 157630 RVA: 0x00AAF7D4 File Offset: 0x00AAD9D4
|
|
public void JCBFCDCJDCE(Sprite IAJBDLBFGHI = null)
|
|
{
|
|
if (IAJBDLBFGHI != null)
|
|
{
|
|
this.sprite = IAJBDLBFGHI;
|
|
}
|
|
float num = 990f / (float)this.jitterFPS;
|
|
float num2 = Time.time - this.lastJitterTime;
|
|
if (num2 >= num)
|
|
{
|
|
this.lastJitterTime = Time.time;
|
|
this.jitterOffset.x = global::UnityEngine.Random.Range(-this.maxJitterOffset.x, this.maxJitterOffset.x);
|
|
this.jitterOffset.y = global::UnityEngine.Random.Range(-this.maxJitterOffset.y, this.maxJitterOffset.y);
|
|
this.jitterScale.x = global::UnityEngine.Random.Range(-this.maxJitterScale.x, this.maxJitterScale.x);
|
|
this.jitterScale.y = global::UnityEngine.Random.Range(-this.maxJitterScale.y, this.maxJitterScale.y);
|
|
}
|
|
if (this.sprite != null && this.renderer != null)
|
|
{
|
|
Rect rect = ((this.offsetMode != EPDJHOCOFIG.OriginalTexture) ? this.sprite.textureRect : this.sprite.rect);
|
|
Vector2 vector = new Vector2(rect.position.x / (float)this.sprite.texture.width, rect.position.y / (float)this.sprite.texture.height);
|
|
Vector2 vector2 = new Vector2(rect.size.x / (float)this.sprite.texture.width, rect.size.y / (float)this.sprite.texture.height);
|
|
Vector2 vector3 = vector + vector2 / 1706f;
|
|
vector3 += new Vector2(vector2.x * this.jitterOffset.x, vector2.y * this.jitterOffset.y);
|
|
vector2 += new Vector2(vector2.x * this.jitterScale.x, vector2.y * this.jitterScale.y);
|
|
vector = vector3 - vector2 / 962f;
|
|
if (this.applyToOnlyOneRendererMaterial && this.rendererMaterialIndex >= 1 && this.rendererMaterialIndex < this.renderer.materials.Length)
|
|
{
|
|
this.renderer.materials[this.rendererMaterialIndex].SetTexture("BLUE TEAM", this.sprite.texture);
|
|
this.renderer.materials[this.rendererMaterialIndex].SetVector(".", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
}
|
|
else
|
|
{
|
|
if (this.FDDOHLNBDJB() == null)
|
|
{
|
|
this.HCEJDEBOBPA(new MaterialPropertyBlock());
|
|
}
|
|
this.GCDHJBJKHIL().SetTexture("Duirronir", this.sprite.texture);
|
|
this.ABFEAHAONPK().SetVector("IntegrationTest Run interrupted", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
this.renderer.SetPropertyBlock(this.HEKGPDEDMLK());
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060267C0 RID: 157632 RVA: 0x00AAFB40 File Offset: 0x00AADD40
|
|
public void CHKNJOALAPG(Sprite IAJBDLBFGHI = null)
|
|
{
|
|
if (IAJBDLBFGHI != null)
|
|
{
|
|
this.sprite = IAJBDLBFGHI;
|
|
}
|
|
float num = 637f / (float)this.jitterFPS;
|
|
float num2 = Time.time - this.lastJitterTime;
|
|
if (num2 >= num)
|
|
{
|
|
this.lastJitterTime = Time.time;
|
|
this.jitterOffset.x = global::UnityEngine.Random.Range(-this.maxJitterOffset.x, this.maxJitterOffset.x);
|
|
this.jitterOffset.y = global::UnityEngine.Random.Range(-this.maxJitterOffset.y, this.maxJitterOffset.y);
|
|
this.jitterScale.x = global::UnityEngine.Random.Range(-this.maxJitterScale.x, this.maxJitterScale.x);
|
|
this.jitterScale.y = global::UnityEngine.Random.Range(-this.maxJitterScale.y, this.maxJitterScale.y);
|
|
}
|
|
if (this.sprite != null && this.renderer != null)
|
|
{
|
|
Rect rect = ((this.offsetMode != EPDJHOCOFIG.OriginalTexture) ? this.sprite.textureRect : this.sprite.rect);
|
|
Vector2 vector = new Vector2(rect.position.x / (float)this.sprite.texture.width, rect.position.y / (float)this.sprite.texture.height);
|
|
Vector2 vector2 = new Vector2(rect.size.x / (float)this.sprite.texture.width, rect.size.y / (float)this.sprite.texture.height);
|
|
Vector2 vector3 = vector + vector2 / 656f;
|
|
vector3 += new Vector2(vector2.x * this.jitterOffset.x, vector2.y * this.jitterOffset.y);
|
|
vector2 += new Vector2(vector2.x * this.jitterScale.x, vector2.y * this.jitterScale.y);
|
|
vector = vector3 - vector2 / 1507f;
|
|
if (this.applyToOnlyOneRendererMaterial && this.rendererMaterialIndex >= 1 && this.rendererMaterialIndex < this.renderer.materials.Length)
|
|
{
|
|
this.renderer.materials[this.rendererMaterialIndex].SetTexture("DEFENSE SCORES", this.sprite.texture);
|
|
this.renderer.materials[this.rendererMaterialIndex].SetVector("Touchpad", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
}
|
|
else
|
|
{
|
|
if (this.FDDOHLNBDJB() == null)
|
|
{
|
|
this.ICIKKBMCAOG(new MaterialPropertyBlock());
|
|
}
|
|
this.HEKGPDEDMLK().SetTexture("RoomId", this.sprite.texture);
|
|
this.LDKEKLHEFCG().SetVector("CT", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
this.renderer.SetPropertyBlock(this.FDDOHLNBDJB());
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060267C1 RID: 157633 RVA: 0x00AAFEA4 File Offset: 0x00AAE0A4
|
|
private void FIGFDNKPOKK(MaterialPropertyBlock NOBAPCOKFIL)
|
|
{
|
|
this.<MaterialProperties>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060267C2 RID: 157634 RVA: 0x00AAFEB0 File Offset: 0x00AAE0B0
|
|
public MaterialPropertyBlock CGBJBCJGLFE()
|
|
{
|
|
return this.<MaterialProperties>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060267C3 RID: 157635 RVA: 0x00AAFEB8 File Offset: 0x00AAE0B8
|
|
public MaterialPropertyBlock FNAGDGGHKIH()
|
|
{
|
|
return this.<MaterialProperties>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060267C4 RID: 157636 RVA: 0x00AAFEC0 File Offset: 0x00AAE0C0
|
|
public void EJAJIGMFGEK(Sprite IAJBDLBFGHI = null)
|
|
{
|
|
if (IAJBDLBFGHI != null)
|
|
{
|
|
this.sprite = IAJBDLBFGHI;
|
|
}
|
|
float num = 1141f / (float)this.jitterFPS;
|
|
float num2 = Time.time - this.lastJitterTime;
|
|
if (num2 >= num)
|
|
{
|
|
this.lastJitterTime = Time.time;
|
|
this.jitterOffset.x = global::UnityEngine.Random.Range(-this.maxJitterOffset.x, this.maxJitterOffset.x);
|
|
this.jitterOffset.y = global::UnityEngine.Random.Range(-this.maxJitterOffset.y, this.maxJitterOffset.y);
|
|
this.jitterScale.x = global::UnityEngine.Random.Range(-this.maxJitterScale.x, this.maxJitterScale.x);
|
|
this.jitterScale.y = global::UnityEngine.Random.Range(-this.maxJitterScale.y, this.maxJitterScale.y);
|
|
}
|
|
if (this.sprite != null && this.renderer != null)
|
|
{
|
|
Rect rect = ((this.offsetMode != EPDJHOCOFIG.OriginalTexture) ? this.sprite.textureRect : this.sprite.rect);
|
|
Vector2 vector = new Vector2(rect.position.x / (float)this.sprite.texture.width, rect.position.y / (float)this.sprite.texture.height);
|
|
Vector2 vector2 = new Vector2(rect.size.x / (float)this.sprite.texture.width, rect.size.y / (float)this.sprite.texture.height);
|
|
Vector2 vector3 = vector + vector2 / 347f;
|
|
vector3 += new Vector2(vector2.x * this.jitterOffset.x, vector2.y * this.jitterOffset.y);
|
|
vector2 += new Vector2(vector2.x * this.jitterScale.x, vector2.y * this.jitterScale.y);
|
|
vector = vector3 - vector2 / 1259f;
|
|
if (this.applyToOnlyOneRendererMaterial && this.rendererMaterialIndex >= 1 && this.rendererMaterialIndex < this.renderer.materials.Length)
|
|
{
|
|
this.renderer.materials[this.rendererMaterialIndex].SetTexture("rotation", this.sprite.texture);
|
|
this.renderer.materials[this.rendererMaterialIndex].SetVector("You Leveled Up!", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
}
|
|
else
|
|
{
|
|
if (this.KNCGCNEPAJI() == null)
|
|
{
|
|
this.BKFMDAGNGED(new MaterialPropertyBlock());
|
|
}
|
|
this.KNCGCNEPAJI().SetTexture("{0}v1/search", this.sprite.texture);
|
|
this.CHLJDAOHMPB().SetVector("rotate", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
this.renderer.SetPropertyBlock(this.HFEPLPFHHEO());
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060267C5 RID: 157637 RVA: 0x00AB0224 File Offset: 0x00AAE424
|
|
public void CHNNPLLNFHP(Sprite IAJBDLBFGHI = null)
|
|
{
|
|
if (IAJBDLBFGHI != null)
|
|
{
|
|
this.sprite = IAJBDLBFGHI;
|
|
}
|
|
float num = 819f / (float)this.jitterFPS;
|
|
float num2 = Time.time - this.lastJitterTime;
|
|
if (num2 >= num)
|
|
{
|
|
this.lastJitterTime = Time.time;
|
|
this.jitterOffset.x = global::UnityEngine.Random.Range(-this.maxJitterOffset.x, this.maxJitterOffset.x);
|
|
this.jitterOffset.y = global::UnityEngine.Random.Range(-this.maxJitterOffset.y, this.maxJitterOffset.y);
|
|
this.jitterScale.x = global::UnityEngine.Random.Range(-this.maxJitterScale.x, this.maxJitterScale.x);
|
|
this.jitterScale.y = global::UnityEngine.Random.Range(-this.maxJitterScale.y, this.maxJitterScale.y);
|
|
}
|
|
if (this.sprite != null && this.renderer != null)
|
|
{
|
|
Rect rect = ((this.offsetMode != EPDJHOCOFIG.OriginalTexture) ? this.sprite.textureRect : this.sprite.rect);
|
|
Vector2 vector = new Vector2(rect.position.x / (float)this.sprite.texture.width, rect.position.y / (float)this.sprite.texture.height);
|
|
Vector2 vector2 = new Vector2(rect.size.x / (float)this.sprite.texture.width, rect.size.y / (float)this.sprite.texture.height);
|
|
Vector2 vector3 = vector + vector2 / 1503f;
|
|
vector3 += new Vector2(vector2.x * this.jitterOffset.x, vector2.y * this.jitterOffset.y);
|
|
vector2 += new Vector2(vector2.x * this.jitterScale.x, vector2.y * this.jitterScale.y);
|
|
vector = vector3 - vector2 / 1938f;
|
|
if (this.applyToOnlyOneRendererMaterial && this.rendererMaterialIndex >= 1 && this.rendererMaterialIndex < this.renderer.materials.Length)
|
|
{
|
|
this.renderer.materials[this.rendererMaterialIndex].SetTexture("B", this.sprite.texture);
|
|
this.renderer.materials[this.rendererMaterialIndex].SetVector(" ms", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
}
|
|
else
|
|
{
|
|
if (this.ABFEAHAONPK() == null)
|
|
{
|
|
this.CCLBABIEIAI(new MaterialPropertyBlock());
|
|
}
|
|
this.LDKEKLHEFCG().SetTexture("System.Object", this.sprite.texture);
|
|
this.FHABOEBBOPG().SetVector("api/activities/charades/v1/words", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
this.renderer.SetPropertyBlock(this.MaterialProperties);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060267C6 RID: 157638 RVA: 0x00AB0588 File Offset: 0x00AAE788
|
|
private void JAHIPFFGING(MaterialPropertyBlock NOBAPCOKFIL)
|
|
{
|
|
this.<MaterialProperties>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060267C7 RID: 157639 RVA: 0x00AB0594 File Offset: 0x00AAE794
|
|
private void LIOPAEALBNG(MaterialPropertyBlock NOBAPCOKFIL)
|
|
{
|
|
this.<MaterialProperties>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060267C8 RID: 157640 RVA: 0x00AB05A0 File Offset: 0x00AAE7A0
|
|
public MaterialPropertyBlock FHABOEBBOPG()
|
|
{
|
|
return this.<MaterialProperties>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060267C9 RID: 157641 RVA: 0x00AB05A8 File Offset: 0x00AAE7A8
|
|
public void NENOLIPFLEE(Sprite IAJBDLBFGHI = null)
|
|
{
|
|
if (IAJBDLBFGHI != null)
|
|
{
|
|
this.sprite = IAJBDLBFGHI;
|
|
}
|
|
float num = 1658f / (float)this.jitterFPS;
|
|
float num2 = Time.time - this.lastJitterTime;
|
|
if (num2 >= num)
|
|
{
|
|
this.lastJitterTime = Time.time;
|
|
this.jitterOffset.x = global::UnityEngine.Random.Range(-this.maxJitterOffset.x, this.maxJitterOffset.x);
|
|
this.jitterOffset.y = global::UnityEngine.Random.Range(-this.maxJitterOffset.y, this.maxJitterOffset.y);
|
|
this.jitterScale.x = global::UnityEngine.Random.Range(-this.maxJitterScale.x, this.maxJitterScale.x);
|
|
this.jitterScale.y = global::UnityEngine.Random.Range(-this.maxJitterScale.y, this.maxJitterScale.y);
|
|
}
|
|
if (this.sprite != null && this.renderer != null)
|
|
{
|
|
Rect rect = ((this.offsetMode != EPDJHOCOFIG.OriginalTexture) ? this.sprite.textureRect : this.sprite.rect);
|
|
Vector2 vector = new Vector2(rect.position.x / (float)this.sprite.texture.width, rect.position.y / (float)this.sprite.texture.height);
|
|
Vector2 vector2 = new Vector2(rect.size.x / (float)this.sprite.texture.width, rect.size.y / (float)this.sprite.texture.height);
|
|
Vector2 vector3 = vector + vector2 / 1654f;
|
|
vector3 += new Vector2(vector2.x * this.jitterOffset.x, vector2.y * this.jitterOffset.y);
|
|
vector2 += new Vector2(vector2.x * this.jitterScale.x, vector2.y * this.jitterScale.y);
|
|
vector = vector3 - vector2 / 1191f;
|
|
if (this.applyToOnlyOneRendererMaterial && this.rendererMaterialIndex >= 0 && this.rendererMaterialIndex < this.renderer.materials.Length)
|
|
{
|
|
this.renderer.materials[this.rendererMaterialIndex].SetTexture("SUMMER2013", this.sprite.texture);
|
|
this.renderer.materials[this.rendererMaterialIndex].SetVector("api/settings/", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
}
|
|
else
|
|
{
|
|
if (this.JJCPFEICFDB() == null)
|
|
{
|
|
this.HPEDACNBGGJ(new MaterialPropertyBlock());
|
|
}
|
|
this.FDDOHLNBDJB().SetTexture("Eye Depth (m): {0:F3}", this.sprite.texture);
|
|
this.KKDNHBIDDHP().SetVector("http://www.google-analytics.com/collect", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
this.renderer.SetPropertyBlock(this.CHLJDAOHMPB());
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060267CA RID: 157642 RVA: 0x00AB090C File Offset: 0x00AAEB0C
|
|
public void JBCFBOJPDDP(Sprite IAJBDLBFGHI = null)
|
|
{
|
|
if (IAJBDLBFGHI != null)
|
|
{
|
|
this.sprite = IAJBDLBFGHI;
|
|
}
|
|
float num = 1409f / (float)this.jitterFPS;
|
|
float num2 = Time.time - this.lastJitterTime;
|
|
if (num2 >= num)
|
|
{
|
|
this.lastJitterTime = Time.time;
|
|
this.jitterOffset.x = global::UnityEngine.Random.Range(-this.maxJitterOffset.x, this.maxJitterOffset.x);
|
|
this.jitterOffset.y = global::UnityEngine.Random.Range(-this.maxJitterOffset.y, this.maxJitterOffset.y);
|
|
this.jitterScale.x = global::UnityEngine.Random.Range(-this.maxJitterScale.x, this.maxJitterScale.x);
|
|
this.jitterScale.y = global::UnityEngine.Random.Range(-this.maxJitterScale.y, this.maxJitterScale.y);
|
|
}
|
|
if (this.sprite != null && this.renderer != null)
|
|
{
|
|
Rect rect = ((this.offsetMode != EPDJHOCOFIG.OriginalTexture) ? this.sprite.textureRect : this.sprite.rect);
|
|
Vector2 vector = new Vector2(rect.position.x / (float)this.sprite.texture.width, rect.position.y / (float)this.sprite.texture.height);
|
|
Vector2 vector2 = new Vector2(rect.size.x / (float)this.sprite.texture.width, rect.size.y / (float)this.sprite.texture.height);
|
|
Vector2 vector3 = vector + vector2 / 1470f;
|
|
vector3 += new Vector2(vector2.x * this.jitterOffset.x, vector2.y * this.jitterOffset.y);
|
|
vector2 += new Vector2(vector2.x * this.jitterScale.x, vector2.y * this.jitterScale.y);
|
|
vector = vector3 - vector2 / 1458f;
|
|
if (this.applyToOnlyOneRendererMaterial && this.rendererMaterialIndex >= 0 && this.rendererMaterialIndex < this.renderer.materials.Length)
|
|
{
|
|
this.renderer.materials[this.rendererMaterialIndex].SetTexture("CreatedAt", this.sprite.texture);
|
|
this.renderer.materials[this.rendererMaterialIndex].SetVector("Recroom.OOBE", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
}
|
|
else
|
|
{
|
|
if (this.KKDNHBIDDHP() == null)
|
|
{
|
|
this.IHMMHNKJPNL(new MaterialPropertyBlock());
|
|
}
|
|
this.JJCPFEICFDB().SetTexture("Remote server closed the connection before sending response header!", this.sprite.texture);
|
|
this.KKDNHBIDDHP().SetVector("_Color", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
this.renderer.SetPropertyBlock(this.OCBHEGJMJBE());
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060267CB RID: 157643 RVA: 0x00AB0C70 File Offset: 0x00AAEE70
|
|
private void KAEHGOJAFOK(MaterialPropertyBlock NOBAPCOKFIL)
|
|
{
|
|
this.<MaterialProperties>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060267CC RID: 157644 RVA: 0x00AB0C7C File Offset: 0x00AAEE7C
|
|
public MaterialPropertyBlock KKNFLMBKFBM()
|
|
{
|
|
return this.<MaterialProperties>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060267CD RID: 157645 RVA: 0x00AB0C84 File Offset: 0x00AAEE84
|
|
public void OLAPAKDPICK(Sprite IAJBDLBFGHI = null)
|
|
{
|
|
if (IAJBDLBFGHI != null)
|
|
{
|
|
this.sprite = IAJBDLBFGHI;
|
|
}
|
|
float num = 1776f / (float)this.jitterFPS;
|
|
float num2 = Time.time - this.lastJitterTime;
|
|
if (num2 >= num)
|
|
{
|
|
this.lastJitterTime = Time.time;
|
|
this.jitterOffset.x = global::UnityEngine.Random.Range(-this.maxJitterOffset.x, this.maxJitterOffset.x);
|
|
this.jitterOffset.y = global::UnityEngine.Random.Range(-this.maxJitterOffset.y, this.maxJitterOffset.y);
|
|
this.jitterScale.x = global::UnityEngine.Random.Range(-this.maxJitterScale.x, this.maxJitterScale.x);
|
|
this.jitterScale.y = global::UnityEngine.Random.Range(-this.maxJitterScale.y, this.maxJitterScale.y);
|
|
}
|
|
if (this.sprite != null && this.renderer != null)
|
|
{
|
|
Rect rect = ((this.offsetMode != EPDJHOCOFIG.OriginalTexture) ? this.sprite.textureRect : this.sprite.rect);
|
|
Vector2 vector = new Vector2(rect.position.x / (float)this.sprite.texture.width, rect.position.y / (float)this.sprite.texture.height);
|
|
Vector2 vector2 = new Vector2(rect.size.x / (float)this.sprite.texture.width, rect.size.y / (float)this.sprite.texture.height);
|
|
Vector2 vector3 = vector + vector2 / 340f;
|
|
vector3 += new Vector2(vector2.x * this.jitterOffset.x, vector2.y * this.jitterOffset.y);
|
|
vector2 += new Vector2(vector2.x * this.jitterScale.x, vector2.y * this.jitterScale.y);
|
|
vector = vector3 - vector2 / 501f;
|
|
if (this.applyToOnlyOneRendererMaterial && this.rendererMaterialIndex >= 1 && this.rendererMaterialIndex < this.renderer.materials.Length)
|
|
{
|
|
this.renderer.materials[this.rendererMaterialIndex].SetTexture("Refund", this.sprite.texture);
|
|
this.renderer.materials[this.rendererMaterialIndex].SetVector(" - ", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
}
|
|
else
|
|
{
|
|
if (this.KLILBODNLAB() == null)
|
|
{
|
|
this.HPEDACNBGGJ(new MaterialPropertyBlock());
|
|
}
|
|
this.KNCGCNEPAJI().SetTexture("Cost", this.sprite.texture);
|
|
this.PHCDNJGDMCG().SetVector("Trigger", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
this.renderer.SetPropertyBlock(this.FHABOEBBOPG());
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060267CE RID: 157646 RVA: 0x00AB0FE8 File Offset: 0x00AAF1E8
|
|
public void EKPAMBJJCEC(Sprite IAJBDLBFGHI = null)
|
|
{
|
|
if (IAJBDLBFGHI != null)
|
|
{
|
|
this.sprite = IAJBDLBFGHI;
|
|
}
|
|
float num = 1f / (float)this.jitterFPS;
|
|
float num2 = Time.time - this.lastJitterTime;
|
|
if (num2 >= num)
|
|
{
|
|
this.lastJitterTime = Time.time;
|
|
this.jitterOffset.x = global::UnityEngine.Random.Range(-this.maxJitterOffset.x, this.maxJitterOffset.x);
|
|
this.jitterOffset.y = global::UnityEngine.Random.Range(-this.maxJitterOffset.y, this.maxJitterOffset.y);
|
|
this.jitterScale.x = global::UnityEngine.Random.Range(-this.maxJitterScale.x, this.maxJitterScale.x);
|
|
this.jitterScale.y = global::UnityEngine.Random.Range(-this.maxJitterScale.y, this.maxJitterScale.y);
|
|
}
|
|
if (this.sprite != null && this.renderer != null)
|
|
{
|
|
Rect rect = ((this.offsetMode != EPDJHOCOFIG.OriginalTexture) ? this.sprite.textureRect : this.sprite.rect);
|
|
Vector2 vector = new Vector2(rect.position.x / (float)this.sprite.texture.width, rect.position.y / (float)this.sprite.texture.height);
|
|
Vector2 vector2 = new Vector2(rect.size.x / (float)this.sprite.texture.width, rect.size.y / (float)this.sprite.texture.height);
|
|
Vector2 vector3 = vector + vector2 / 1049f;
|
|
vector3 += new Vector2(vector2.x * this.jitterOffset.x, vector2.y * this.jitterOffset.y);
|
|
vector2 += new Vector2(vector2.x * this.jitterScale.x, vector2.y * this.jitterScale.y);
|
|
vector = vector3 - vector2 / 1943f;
|
|
if (this.applyToOnlyOneRendererMaterial && this.rendererMaterialIndex >= 0 && this.rendererMaterialIndex < this.renderer.materials.Length)
|
|
{
|
|
this.renderer.materials[this.rendererMaterialIndex].SetTexture("Failed to get random name", this.sprite.texture);
|
|
this.renderer.materials[this.rendererMaterialIndex].SetVector("[ACTk] Obscured Cheating Detector: has properly configured Detection Event in the inspector, but still get started with Action callback. Both Action and Detection Event will be called on detection. Are you sure you wish to do this?", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
}
|
|
else
|
|
{
|
|
if (this.BMILFGCEDGG() == null)
|
|
{
|
|
this.HCEJDEBOBPA(new MaterialPropertyBlock());
|
|
}
|
|
this.MCDOGOCGKDK().SetTexture("AuthenticationValues UserId: {0}, GetParameters: {1} Token available: {2}", this.sprite.texture);
|
|
this.JJCPFEICFDB().SetVector("_TintColor", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
this.renderer.SetPropertyBlock(this.KLILBODNLAB());
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060267CF RID: 157647 RVA: 0x00AB134C File Offset: 0x00AAF54C
|
|
public void AKAENFNHPEN(Sprite IAJBDLBFGHI = null)
|
|
{
|
|
if (IAJBDLBFGHI != null)
|
|
{
|
|
this.sprite = IAJBDLBFGHI;
|
|
}
|
|
float num = 1809f / (float)this.jitterFPS;
|
|
float num2 = Time.time - this.lastJitterTime;
|
|
if (num2 >= num)
|
|
{
|
|
this.lastJitterTime = Time.time;
|
|
this.jitterOffset.x = global::UnityEngine.Random.Range(-this.maxJitterOffset.x, this.maxJitterOffset.x);
|
|
this.jitterOffset.y = global::UnityEngine.Random.Range(-this.maxJitterOffset.y, this.maxJitterOffset.y);
|
|
this.jitterScale.x = global::UnityEngine.Random.Range(-this.maxJitterScale.x, this.maxJitterScale.x);
|
|
this.jitterScale.y = global::UnityEngine.Random.Range(-this.maxJitterScale.y, this.maxJitterScale.y);
|
|
}
|
|
if (this.sprite != null && this.renderer != null)
|
|
{
|
|
Rect rect = ((this.offsetMode != EPDJHOCOFIG.OriginalTexture) ? this.sprite.textureRect : this.sprite.rect);
|
|
Vector2 vector = new Vector2(rect.position.x / (float)this.sprite.texture.width, rect.position.y / (float)this.sprite.texture.height);
|
|
Vector2 vector2 = new Vector2(rect.size.x / (float)this.sprite.texture.width, rect.size.y / (float)this.sprite.texture.height);
|
|
Vector2 vector3 = vector + vector2 / 42f;
|
|
vector3 += new Vector2(vector2.x * this.jitterOffset.x, vector2.y * this.jitterOffset.y);
|
|
vector2 += new Vector2(vector2.x * this.jitterScale.x, vector2.y * this.jitterScale.y);
|
|
vector = vector3 - vector2 / 849f;
|
|
if (this.applyToOnlyOneRendererMaterial && this.rendererMaterialIndex >= 0 && this.rendererMaterialIndex < this.renderer.materials.Length)
|
|
{
|
|
this.renderer.materials[this.rendererMaterialIndex].SetTexture("jointXform", this.sprite.texture);
|
|
this.renderer.materials[this.rendererMaterialIndex].SetVector("#FF4040", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
}
|
|
else
|
|
{
|
|
if (this.HEKGPDEDMLK() == null)
|
|
{
|
|
this.HFCNONCDGEK(new MaterialPropertyBlock());
|
|
}
|
|
this.NFIOFJGICBK().SetTexture("easeType", this.sprite.texture);
|
|
this.PHCDNJGDMCG().SetVector("No Inflate State!", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
this.renderer.SetPropertyBlock(this.HJHCMPKIOAA());
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060267D0 RID: 157648 RVA: 0x00AB16B0 File Offset: 0x00AAF8B0
|
|
public MaterialPropertyBlock KKDNHBIDDHP()
|
|
{
|
|
return this.<MaterialProperties>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060267D1 RID: 157649 RVA: 0x00AB16B8 File Offset: 0x00AAF8B8
|
|
private void ELDJOKKMAAO(MaterialPropertyBlock NOBAPCOKFIL)
|
|
{
|
|
this.<MaterialProperties>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060267D2 RID: 157650 RVA: 0x00AB16C4 File Offset: 0x00AAF8C4
|
|
public MaterialPropertyBlock HEKGPDEDMLK()
|
|
{
|
|
return this.<MaterialProperties>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060267D3 RID: 157651 RVA: 0x00AB16CC File Offset: 0x00AAF8CC
|
|
private void CCLBABIEIAI(MaterialPropertyBlock NOBAPCOKFIL)
|
|
{
|
|
this.<MaterialProperties>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060267D4 RID: 157652 RVA: 0x00AB16D8 File Offset: 0x00AAF8D8
|
|
public void OKIHFAFILDB(Sprite IAJBDLBFGHI = null)
|
|
{
|
|
if (IAJBDLBFGHI != null)
|
|
{
|
|
this.sprite = IAJBDLBFGHI;
|
|
}
|
|
float num = 191f / (float)this.jitterFPS;
|
|
float num2 = Time.time - this.lastJitterTime;
|
|
if (num2 >= num)
|
|
{
|
|
this.lastJitterTime = Time.time;
|
|
this.jitterOffset.x = global::UnityEngine.Random.Range(-this.maxJitterOffset.x, this.maxJitterOffset.x);
|
|
this.jitterOffset.y = global::UnityEngine.Random.Range(-this.maxJitterOffset.y, this.maxJitterOffset.y);
|
|
this.jitterScale.x = global::UnityEngine.Random.Range(-this.maxJitterScale.x, this.maxJitterScale.x);
|
|
this.jitterScale.y = global::UnityEngine.Random.Range(-this.maxJitterScale.y, this.maxJitterScale.y);
|
|
}
|
|
if (this.sprite != null && this.renderer != null)
|
|
{
|
|
Rect rect = ((this.offsetMode != EPDJHOCOFIG.OriginalTexture) ? this.sprite.textureRect : this.sprite.rect);
|
|
Vector2 vector = new Vector2(rect.position.x / (float)this.sprite.texture.width, rect.position.y / (float)this.sprite.texture.height);
|
|
Vector2 vector2 = new Vector2(rect.size.x / (float)this.sprite.texture.width, rect.size.y / (float)this.sprite.texture.height);
|
|
Vector2 vector3 = vector + vector2 / 380f;
|
|
vector3 += new Vector2(vector2.x * this.jitterOffset.x, vector2.y * this.jitterOffset.y);
|
|
vector2 += new Vector2(vector2.x * this.jitterScale.x, vector2.y * this.jitterScale.y);
|
|
vector = vector3 - vector2 / 195f;
|
|
if (this.applyToOnlyOneRendererMaterial && this.rendererMaterialIndex >= 0 && this.rendererMaterialIndex < this.renderer.materials.Length)
|
|
{
|
|
this.renderer.materials[this.rendererMaterialIndex].SetTexture(" (eye)", this.sprite.texture);
|
|
this.renderer.materials[this.rendererMaterialIndex].SetVector("a", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
}
|
|
else
|
|
{
|
|
if (this.CGBJBCJGLFE() == null)
|
|
{
|
|
this.MaterialProperties = new MaterialPropertyBlock();
|
|
}
|
|
this.OCBHEGJMJBE().SetTexture("Saving...", this.sprite.texture);
|
|
this.IPNEFLFJOGE().SetVector("status == FINISH_STATE && _codec.AvailableBytesIn != 0", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
this.renderer.SetPropertyBlock(this.BMILFGCEDGG());
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060267D5 RID: 157653 RVA: 0x00AB1A3C File Offset: 0x00AAFC3C
|
|
private void BKFMDAGNGED(MaterialPropertyBlock NOBAPCOKFIL)
|
|
{
|
|
this.<MaterialProperties>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060267D6 RID: 157654 RVA: 0x00AB1A48 File Offset: 0x00AAFC48
|
|
public MaterialPropertyBlock KLILBODNLAB()
|
|
{
|
|
return this.<MaterialProperties>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060267D7 RID: 157655 RVA: 0x00AB1A50 File Offset: 0x00AAFC50
|
|
public void KOKFKINOIHC(Sprite IAJBDLBFGHI = null)
|
|
{
|
|
if (IAJBDLBFGHI != null)
|
|
{
|
|
this.sprite = IAJBDLBFGHI;
|
|
}
|
|
float num = 1226f / (float)this.jitterFPS;
|
|
float num2 = Time.time - this.lastJitterTime;
|
|
if (num2 >= num)
|
|
{
|
|
this.lastJitterTime = Time.time;
|
|
this.jitterOffset.x = global::UnityEngine.Random.Range(-this.maxJitterOffset.x, this.maxJitterOffset.x);
|
|
this.jitterOffset.y = global::UnityEngine.Random.Range(-this.maxJitterOffset.y, this.maxJitterOffset.y);
|
|
this.jitterScale.x = global::UnityEngine.Random.Range(-this.maxJitterScale.x, this.maxJitterScale.x);
|
|
this.jitterScale.y = global::UnityEngine.Random.Range(-this.maxJitterScale.y, this.maxJitterScale.y);
|
|
}
|
|
if (this.sprite != null && this.renderer != null)
|
|
{
|
|
Rect rect = ((this.offsetMode != EPDJHOCOFIG.OriginalTexture) ? this.sprite.textureRect : this.sprite.rect);
|
|
Vector2 vector = new Vector2(rect.position.x / (float)this.sprite.texture.width, rect.position.y / (float)this.sprite.texture.height);
|
|
Vector2 vector2 = new Vector2(rect.size.x / (float)this.sprite.texture.width, rect.size.y / (float)this.sprite.texture.height);
|
|
Vector2 vector3 = vector + vector2 / 710f;
|
|
vector3 += new Vector2(vector2.x * this.jitterOffset.x, vector2.y * this.jitterOffset.y);
|
|
vector2 += new Vector2(vector2.x * this.jitterScale.x, vector2.y * this.jitterScale.y);
|
|
vector = vector3 - vector2 / 613f;
|
|
if (this.applyToOnlyOneRendererMaterial && this.rendererMaterialIndex >= 0 && this.rendererMaterialIndex < this.renderer.materials.Length)
|
|
{
|
|
this.renderer.materials[this.rendererMaterialIndex].SetTexture("ObscuredShort vs short, ", this.sprite.texture);
|
|
this.renderer.materials[this.rendererMaterialIndex].SetVector("Error: Room does not exist!", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
}
|
|
else
|
|
{
|
|
if (this.FDDOHLNBDJB() == null)
|
|
{
|
|
this.HCEJDEBOBPA(new MaterialPropertyBlock());
|
|
}
|
|
this.KKNFLMBKFBM().SetTexture("Can't close an array here", this.sprite.texture);
|
|
this.KNCGCNEPAJI().SetVector("demoColor", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
this.renderer.SetPropertyBlock(this.LDKEKLHEFCG());
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060267D8 RID: 157656 RVA: 0x00AB1DB4 File Offset: 0x00AAFFB4
|
|
public void IGKPJKMLPPI(Sprite IAJBDLBFGHI = null)
|
|
{
|
|
if (IAJBDLBFGHI != null)
|
|
{
|
|
this.sprite = IAJBDLBFGHI;
|
|
}
|
|
float num = 467f / (float)this.jitterFPS;
|
|
float num2 = Time.time - this.lastJitterTime;
|
|
if (num2 >= num)
|
|
{
|
|
this.lastJitterTime = Time.time;
|
|
this.jitterOffset.x = global::UnityEngine.Random.Range(-this.maxJitterOffset.x, this.maxJitterOffset.x);
|
|
this.jitterOffset.y = global::UnityEngine.Random.Range(-this.maxJitterOffset.y, this.maxJitterOffset.y);
|
|
this.jitterScale.x = global::UnityEngine.Random.Range(-this.maxJitterScale.x, this.maxJitterScale.x);
|
|
this.jitterScale.y = global::UnityEngine.Random.Range(-this.maxJitterScale.y, this.maxJitterScale.y);
|
|
}
|
|
if (this.sprite != null && this.renderer != null)
|
|
{
|
|
Rect rect = ((this.offsetMode != EPDJHOCOFIG.OriginalTexture) ? this.sprite.textureRect : this.sprite.rect);
|
|
Vector2 vector = new Vector2(rect.position.x / (float)this.sprite.texture.width, rect.position.y / (float)this.sprite.texture.height);
|
|
Vector2 vector2 = new Vector2(rect.size.x / (float)this.sprite.texture.width, rect.size.y / (float)this.sprite.texture.height);
|
|
Vector2 vector3 = vector + vector2 / 58f;
|
|
vector3 += new Vector2(vector2.x * this.jitterOffset.x, vector2.y * this.jitterOffset.y);
|
|
vector2 += new Vector2(vector2.x * this.jitterScale.x, vector2.y * this.jitterScale.y);
|
|
vector = vector3 - vector2 / 848f;
|
|
if (this.applyToOnlyOneRendererMaterial && this.rendererMaterialIndex >= 1 && this.rendererMaterialIndex < this.renderer.materials.Length)
|
|
{
|
|
this.renderer.materials[this.rendererMaterialIndex].SetTexture("Call ConnectToNameServer to ping available regions.", this.sprite.texture);
|
|
this.renderer.materials[this.rendererMaterialIndex].SetVector("GraphicsDeviceVendor", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
}
|
|
else
|
|
{
|
|
if (this.ABFEAHAONPK() == null)
|
|
{
|
|
this.HFCNONCDGEK(new MaterialPropertyBlock());
|
|
}
|
|
this.KKDNHBIDDHP().SetTexture("Cant ask anyone else for PickupItem spawn times.", this.sprite.texture);
|
|
this.PHCDNJGDMCG().SetVector("scale", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
this.renderer.SetPropertyBlock(this.NFIOFJGICBK());
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060267D9 RID: 157657 RVA: 0x00AB2118 File Offset: 0x00AB0318
|
|
private void HPEDACNBGGJ(MaterialPropertyBlock NOBAPCOKFIL)
|
|
{
|
|
this.<MaterialProperties>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060267DA RID: 157658 RVA: 0x00AB2124 File Offset: 0x00AB0324
|
|
public MaterialPropertyBlock MCDOGOCGKDK()
|
|
{
|
|
return this.<MaterialProperties>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060267DB RID: 157659 RVA: 0x00AB212C File Offset: 0x00AB032C
|
|
public MaterialPropertyBlock LLANEFKMNAL()
|
|
{
|
|
return this.<MaterialProperties>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060267DC RID: 157660 RVA: 0x00AB2134 File Offset: 0x00AB0334
|
|
public MaterialPropertyBlock CHLJDAOHMPB()
|
|
{
|
|
return this.<MaterialProperties>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060267DD RID: 157661 RVA: 0x00AB213C File Offset: 0x00AB033C
|
|
private void MJNHHOKHENK(MaterialPropertyBlock NOBAPCOKFIL)
|
|
{
|
|
this.<MaterialProperties>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060267DE RID: 157662 RVA: 0x00AB2148 File Offset: 0x00AB0348
|
|
public MaterialPropertyBlock OCBHEGJMJBE()
|
|
{
|
|
return this.<MaterialProperties>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060267DF RID: 157663 RVA: 0x00AB2150 File Offset: 0x00AB0350
|
|
public MaterialPropertyBlock HJHCMPKIOAA()
|
|
{
|
|
return this.<MaterialProperties>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060267E0 RID: 157664 RVA: 0x00AB2158 File Offset: 0x00AB0358
|
|
public void HCJJEPEDIBA(Sprite IAJBDLBFGHI = null)
|
|
{
|
|
if (IAJBDLBFGHI != null)
|
|
{
|
|
this.sprite = IAJBDLBFGHI;
|
|
}
|
|
float num = 1279f / (float)this.jitterFPS;
|
|
float num2 = Time.time - this.lastJitterTime;
|
|
if (num2 >= num)
|
|
{
|
|
this.lastJitterTime = Time.time;
|
|
this.jitterOffset.x = global::UnityEngine.Random.Range(-this.maxJitterOffset.x, this.maxJitterOffset.x);
|
|
this.jitterOffset.y = global::UnityEngine.Random.Range(-this.maxJitterOffset.y, this.maxJitterOffset.y);
|
|
this.jitterScale.x = global::UnityEngine.Random.Range(-this.maxJitterScale.x, this.maxJitterScale.x);
|
|
this.jitterScale.y = global::UnityEngine.Random.Range(-this.maxJitterScale.y, this.maxJitterScale.y);
|
|
}
|
|
if (this.sprite != null && this.renderer != null)
|
|
{
|
|
Rect rect = ((this.offsetMode != EPDJHOCOFIG.OriginalTexture) ? this.sprite.textureRect : this.sprite.rect);
|
|
Vector2 vector = new Vector2(rect.position.x / (float)this.sprite.texture.width, rect.position.y / (float)this.sprite.texture.height);
|
|
Vector2 vector2 = new Vector2(rect.size.x / (float)this.sprite.texture.width, rect.size.y / (float)this.sprite.texture.height);
|
|
Vector2 vector3 = vector + vector2 / 1876f;
|
|
vector3 += new Vector2(vector2.x * this.jitterOffset.x, vector2.y * this.jitterOffset.y);
|
|
vector2 += new Vector2(vector2.x * this.jitterScale.x, vector2.y * this.jitterScale.y);
|
|
vector = vector3 - vector2 / 914f;
|
|
if (this.applyToOnlyOneRendererMaterial && this.rendererMaterialIndex >= 1 && this.rendererMaterialIndex < this.renderer.materials.Length)
|
|
{
|
|
this.renderer.materials[this.rendererMaterialIndex].SetTexture(" is too long, max size ", this.sprite.texture);
|
|
this.renderer.materials[this.rendererMaterialIndex].SetVector("ti", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
}
|
|
else
|
|
{
|
|
if (this.FNAGDGGHKIH() == null)
|
|
{
|
|
this.ELDJOKKMAAO(new MaterialPropertyBlock());
|
|
}
|
|
this.HEKGPDEDMLK().SetTexture("CheerGeneral", this.sprite.texture);
|
|
this.KHGAIGFGDMO().SetVector("Serializing RCCarRemoteControl {0}: Controlled PhotonView {1} has no corresponding PersistenceView.", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
this.renderer.SetPropertyBlock(this.KHGAIGFGDMO());
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060267E1 RID: 157665 RVA: 0x00AB24BC File Offset: 0x00AB06BC
|
|
public MaterialPropertyBlock BMILFGCEDGG()
|
|
{
|
|
return this.<MaterialProperties>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060267E2 RID: 157666 RVA: 0x00AB24C4 File Offset: 0x00AB06C4
|
|
private void MMDNCFMFKFI(MaterialPropertyBlock NOBAPCOKFIL)
|
|
{
|
|
this.<MaterialProperties>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060267E3 RID: 157667 RVA: 0x00AB24D0 File Offset: 0x00AB06D0
|
|
public MaterialPropertyBlock NFIOFJGICBK()
|
|
{
|
|
return this.<MaterialProperties>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060267E4 RID: 157668 RVA: 0x00AB24D8 File Offset: 0x00AB06D8
|
|
public MaterialPropertyBlock KNCGCNEPAJI()
|
|
{
|
|
return this.<MaterialProperties>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060267E5 RID: 157669 RVA: 0x00AB24E0 File Offset: 0x00AB06E0
|
|
public MaterialPropertyBlock JJCPFEICFDB()
|
|
{
|
|
return this.<MaterialProperties>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060267E6 RID: 157670 RVA: 0x00AB24E8 File Offset: 0x00AB06E8
|
|
public void PCMBFOFJPHC(Sprite IAJBDLBFGHI = null)
|
|
{
|
|
if (IAJBDLBFGHI != null)
|
|
{
|
|
this.sprite = IAJBDLBFGHI;
|
|
}
|
|
float num = 1f / (float)this.jitterFPS;
|
|
float num2 = Time.time - this.lastJitterTime;
|
|
if (num2 >= num)
|
|
{
|
|
this.lastJitterTime = Time.time;
|
|
this.jitterOffset.x = global::UnityEngine.Random.Range(-this.maxJitterOffset.x, this.maxJitterOffset.x);
|
|
this.jitterOffset.y = global::UnityEngine.Random.Range(-this.maxJitterOffset.y, this.maxJitterOffset.y);
|
|
this.jitterScale.x = global::UnityEngine.Random.Range(-this.maxJitterScale.x, this.maxJitterScale.x);
|
|
this.jitterScale.y = global::UnityEngine.Random.Range(-this.maxJitterScale.y, this.maxJitterScale.y);
|
|
}
|
|
if (this.sprite != null && this.renderer != null)
|
|
{
|
|
Rect rect = ((this.offsetMode != EPDJHOCOFIG.OriginalTexture) ? this.sprite.textureRect : this.sprite.rect);
|
|
Vector2 vector = new Vector2(rect.position.x / (float)this.sprite.texture.width, rect.position.y / (float)this.sprite.texture.height);
|
|
Vector2 vector2 = new Vector2(rect.size.x / (float)this.sprite.texture.width, rect.size.y / (float)this.sprite.texture.height);
|
|
Vector2 vector3 = vector + vector2 / 2f;
|
|
vector3 += new Vector2(vector2.x * this.jitterOffset.x, vector2.y * this.jitterOffset.y);
|
|
vector2 += new Vector2(vector2.x * this.jitterScale.x, vector2.y * this.jitterScale.y);
|
|
vector = vector3 - vector2 / 2f;
|
|
if (this.applyToOnlyOneRendererMaterial && this.rendererMaterialIndex >= 0 && this.rendererMaterialIndex < this.renderer.materials.Length)
|
|
{
|
|
this.renderer.materials[this.rendererMaterialIndex].SetTexture("_MainTex", this.sprite.texture);
|
|
this.renderer.materials[this.rendererMaterialIndex].SetVector("_MainTex_ST", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
}
|
|
else
|
|
{
|
|
if (this.MaterialProperties == null)
|
|
{
|
|
this.MaterialProperties = new MaterialPropertyBlock();
|
|
}
|
|
this.MaterialProperties.SetTexture("_MainTex", this.sprite.texture);
|
|
this.MaterialProperties.SetVector("_MainTex_ST", new Vector4(vector2.x, vector2.y, vector.x, vector.y));
|
|
this.renderer.SetPropertyBlock(this.MaterialProperties);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060267E7 RID: 157671 RVA: 0x00AB284C File Offset: 0x00AB0A4C
|
|
private void LDKEMGHKKJE(MaterialPropertyBlock NOBAPCOKFIL)
|
|
{
|
|
this.<MaterialProperties>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060267E8 RID: 157672 RVA: 0x00AB2858 File Offset: 0x00AB0A58
|
|
private void JMGIJBBKMDK(MaterialPropertyBlock NOBAPCOKFIL)
|
|
{
|
|
this.<MaterialProperties>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060267E9 RID: 157673 RVA: 0x00AB2864 File Offset: 0x00AB0A64
|
|
public MaterialPropertyBlock KHGAIGFGDMO()
|
|
{
|
|
return this.<MaterialProperties>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060267EA RID: 157674 RVA: 0x00AB286C File Offset: 0x00AB0A6C
|
|
private void HFCNONCDGEK(MaterialPropertyBlock NOBAPCOKFIL)
|
|
{
|
|
this.<MaterialProperties>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x04006126 RID: 24870
|
|
public Renderer renderer;
|
|
|
|
// Token: 0x04006127 RID: 24871
|
|
public bool applyToOnlyOneRendererMaterial;
|
|
|
|
// Token: 0x04006128 RID: 24872
|
|
public int rendererMaterialIndex = -1;
|
|
|
|
// Token: 0x04006129 RID: 24873
|
|
public Sprite sprite;
|
|
|
|
// Token: 0x0400612A RID: 24874
|
|
public int jitterFPS = 6;
|
|
|
|
// Token: 0x0400612B RID: 24875
|
|
public Vector2 maxJitterOffset;
|
|
|
|
// Token: 0x0400612C RID: 24876
|
|
public Vector2 maxJitterScale;
|
|
|
|
// Token: 0x0400612D RID: 24877
|
|
[Tooltip("Whether to use original texture rect or atlas rect for offset and scale of jitter")]
|
|
public EPDJHOCOFIG offsetMode;
|
|
|
|
// Token: 0x0400612E RID: 24878
|
|
private float lastJitterTime;
|
|
|
|
// Token: 0x0400612F RID: 24879
|
|
private Vector2 jitterOffset;
|
|
|
|
// Token: 0x04006130 RID: 24880
|
|
private Vector3 jitterScale;
|
|
}
|
|
}
|