using System.Collections; using System.Collections.Generic; using UnityEngine; using wildlogicgames; namespace DoomBreakers { public class HealingFX : BaseFX { private const string _animNameStr = "healUpFX"; //public HealingFX(int direction) => Setup(direction); public override void Setup(int direction) { base.Setup(direction); _targetVelocityY = 10.5f; _animator = this.GetComponent(); //_animator.Play("healUpFX"); //FXController.controller _alphaFreq = 0.025f; } public override void SetDirection(int dir) //=> base.SetDirection(dir); { base.SetDirection(dir); this.Setup(dir); } void Awake() { } void Start() { } public override void Update() { if (!_process) return; if (UILevelMenuManager._instance.IsPaused()) return; _animator.Play(_animNameStr); base.Update(); _velocity.y = (_targetVelocityY * Time.deltaTime); } public override void FlipSprite() => base.FlipSprite(); public override void ApplyTransparency() => base.ApplyTransparency(); } }