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
108 Play(_from, fixY, _to, sprite);
131 num += ((from.cell.HasRoof || from.
cell.
isShadowed) ? (-0.2f) : 0f);
134 sr.material.SetVector(
"_Color",
new Vector4(num, num, num, 1f));
145 base.transform.position =
fromV;
195 sr.flipX = (sr.flipX ? (!x) : x);
196 sr.flipY = (sr.flipY ? (!y) : y);
213 if (!base.gameObject.activeSelf)
215 base.gameObject.SetActive(value:
true);
217 timer += (
randomSpeed ? UnityEngine.Random.Range(Time.deltaTime, Time.deltaTime * 1.5f) : Time.deltaTime);
251 else if ((
bool)base.gameObject)
253 UnityEngine.Object.Destroy(base.gameObject);
263 if ((
bool)base.transform.parent && !
test)
277 UnityEngine.Object.Destroy(
item);
283 ParticleSystem[] array =
systems;
284 for (
int i = 0; i < array.Length; i++)
293 ParticleSystem[] array =
systems;
294 for (
int i = 0; i < array.Length; i++)
296 ParticleSystem.MainModule main = array[i].main;
308 ParticleSystem[] array =
systems;
309 foreach (ParticleSystem particleSystem
in array)
319 ParticleSystem.MainModule main = particleSystem.main;
320 main.startColor = color;
328 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)