예제 #1
0
        public static void ExplodeChunks(Vector3 position, Color color)
        {
            var effect = FxFactory.GetEffect <ExplodeChunks>();

            effect.Play(position, color);
        }
예제 #2
0
        public static void RadarSweep(Transform origin, float size, float height = 0)
        {
            var originEffect = FxFactory.GetEffect <RadarSweep>();

            originEffect.Play(origin, size, height);
        }
예제 #3
0
        public static void BeamEffect(Vector3 startPos, Vector3 endPos, Color color)
        {
            var effect = FxFactory.GetEffect <BeamEffect>();

            effect.Play(startPos, endPos, color);
        }
예제 #4
0
        public static void ChargeEnergy(Transform tran, Vector3 offset, Color color, float duration)
        {
            var effect = FxFactory.GetEffect <ChargeEnergy>();

            effect.Play(tran, offset, color, duration);
        }
예제 #5
0
        public static void TextFloatCanvas(Canvas canvas, Vector3 position, string msg, Color color = default(Color))
        {
            var effect = FxFactory.GetEffect <TextFloatCanvas>();

            effect.Play(canvas, position, msg, color);
        }
예제 #6
0
        public static void TextFloat(Vector3 position, string msg, Color color = default(Color))
        {
            var effect = FxFactory.GetEffect <TextFloat>();

            effect.Play(position, msg, color);
        }
예제 #7
0
        public static void EnergyTransfer(Vector3 origin, Vector3 destination, float amount)
        {
            var effect = FxFactory.GetEffect <EnergyTransfer>();

            effect.Play(origin, destination, amount);
        }
예제 #8
0
        public static void RadarHit(Vector3 position, float height = 0)
        {
            var hitEffect = FxFactory.GetEffect <RadarHit>();

            hitEffect.Play(position, height);
        }
예제 #9
0
 protected void Retire()
 {
     FxFactory.Return(this);
 }