public TempEffect(TempEffectType type, GameObject gameObject, float duration, Vector3 position, Vector3 destination) { this.gameObject = gameObject; this.effectType = type; this.duration = duration; this.lifeTimer = 0; this.position = position; this.destination = destination; this.isExpired = false; gameObject.transform.position = position; }
private void AddEffect(TempEffectType type, float duration, Vector3 pos, Vector3 dest, GameObject gameObject) { TempEffect te = new TempEffect(type, gameObject, duration, pos, dest); tempEffectList.Add(te); }
public SpriteTempEffect(TempEffectType type, GameObject gameObject, float duration, Vector3 position, Vector3 destination, string particleSetName, string spriteSetName, int spriteSetIndex) : base(type, gameObject, duration, position, destination) { this.spriteSetName = spriteSetName; this.spriteSetIndex = spriteSetIndex; }
public ParticleTempEffect(TempEffectType type, GameObject gameObject, float duration, Vector3 position, Vector3 destination, string particleSetName) : base(type, gameObject, duration, position, destination) { this.particleSetName = particleSetName; }
public TextTempEffect(TempEffectType type, GameObject gameObject, float duration, Vector3 position, Vector3 destination, string particleSetName, string text) : base(type, gameObject, duration, position, destination) { this.text = text; }
public ParticleTempEffect(TempEffectType type, GameObject gameObject, float duration, Vector3 position, Vector3 destination, string particleSetName) : base (type,gameObject, duration,position,destination) { this.particleSetName = particleSetName; }