Unit tweaks
This commit is contained in:
@@ -5,6 +5,7 @@ import arc.graphics.*;
|
||||
import arc.graphics.g2d.*;
|
||||
import arc.math.*;
|
||||
import arc.math.geom.*;
|
||||
import mindustry.graphics.*;
|
||||
|
||||
public class Effect{
|
||||
private static final EffectContainer container = new EffectContainer();
|
||||
@@ -75,6 +76,7 @@ public class Effect{
|
||||
|
||||
public void render(int id, Color color, float life, float rotation, float x, float y, Object data){
|
||||
container.set(id, color, life, lifetime, rotation, x, y, data);
|
||||
Draw.z(ground ? Layer.debris : Layer.effect);
|
||||
renderer.get(container);
|
||||
Draw.reset();
|
||||
}
|
||||
|
||||
@@ -16,7 +16,6 @@ abstract class EffectComp implements Posc, Drawc, Timedc, Rotc, Childc{
|
||||
|
||||
@Override
|
||||
public void draw(){
|
||||
Draw.z(Layer.effect);
|
||||
effect.render(id(), color, time(), rotation(), x(), y(), data);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user