2using System.Collections.Generic;
28 public SpriteRenderer
sr;
87 return UnityEngine.Object.Instantiate(original);
100 public void Play(
float delay,
Point from,
float fixY = 0f,
Point to =
null, Sprite sprite =
null)
104 TweenUtil.Tween(delay, delegate
106 Play(_from, fixY, _to, sprite);
129 num += ((from.cell.HasRoof || from.
cell.
isShadowed) ? (-0.2f) : 0f);
132 sr.material.SetVector(
"_Color",
new Vector4(num, num, num, 1f));
143 base.transform.position =
fromV;
193 sr.flipX = (sr.flipX ? (!x) : x);
194 sr.flipY = (sr.flipY ? (!y) : y);
211 if (!base.gameObject.activeSelf)
213 base.gameObject.SetActive(value:
true);
215 timer += (
randomSpeed ? UnityEngine.Random.Range(Time.deltaTime, Time.deltaTime * 1.5f) : Time.deltaTime);
249 else if ((
bool)base.gameObject)
251 UnityEngine.Object.Destroy(base.gameObject);
261 if ((
bool)base.transform.parent && !
test)
275 UnityEngine.Object.Destroy(
item);
281 ParticleSystem[] array =
systems;
282 for (
int i = 0; i < array.Length; i++)
291 ParticleSystem[] array =
systems;
292 for (
int i = 0; i < array.Length; i++)
294 ParticleSystem.MainModule main = array[i].main;
306 ParticleSystem[] array =
systems;
307 foreach (ParticleSystem particleSystem
in array)
317 ParticleSystem.MainModule main = particleSystem.main;
318 main.startColor = color;
326 base.transform.localScale *= a;
static EffectManager Instance
static T Get< T >(string id)
Effect _Play(Point from, Vector3 fromV, float fixY=0f, Point to=null, Sprite sprite=null)
static EffectManager manager
Effect Play(Point from, float fixY=0f, Point to=null, Sprite sprite=null)
static Effect Get(Effect original)
static Effect Get(string id)
Effect SetStartDelay(float a)
void Play(float delay, Point from, float fixY=0f, Point to=null, Sprite sprite=null)
Effect Flip(bool x=false, bool y=false)
Effect SetParticleColor(Color c)
Effect SetParticleColor(Color color, bool changeMaterial=false, string idCol="_Color")
List< Material > materialsToDestroy
ref Vector3 Position(int height)
Quaternion GetRotation(Point to)
static void DespawnOrDestroy(Component c)