.NET Decompiler with support for PDB generation, ReadyToRun, Metadata (&more) - cross-platform!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

53 lines
789 B

using System;
[Serializable]
public class Material
{
public static implicit operator bool(Material m)
{
return m == null;
}
}
[Serializable]
public class SequenceOfNestedIfs
{
public bool _clear;
public Material _material;
public override bool CheckShader()
{
return false;
}
public override void CreateMaterials()
{
if (!this._clear)
{
if (!this.CheckShader())
{
return;
}
this._material = new Material();
}
if (!this._material)
{
if (!this.CheckShader())
{
return;
}
this._material = new Material();
}
if (!this._material)
{
if (!this.CheckShader())
{
return;
}
this._material = new Material();
}
if (!this._material)
{
if (this.CheckShader())
{
this._material = new Material();
}
}
}
}