public ProjectileGraphics(ProjectileGraphics pg) { sprite = pg.sprite; // shares reference as original color = pg.color; scale = pg.scale; size = pg.size; }
/// <summary> /// Applies the projectiles graphics /// </summary> public void ApplyGraphics(ProjectileGraphics _graphics) { renderer.sprite = _graphics.sprite; renderer.color = _graphics.color; transform.localScale = _graphics.GetScale(); SetScale(1); }
protected ProjectileContainer(ProjectileContainer other) { stats = other.stats; graphics = other.graphics; mods = ProjMod.CloneList(other.mods); }
public ProjectileContainer(ProjectileStats _stats, ProjectileGraphics _graphics, List <ProjMod> _mods) { stats = _stats; graphics = _graphics; mods = ProjMod.CloneList(_mods); }
public ProjectileContainer() { stats = new ProjectileStats(); graphics = new ProjectileGraphics(); mods = new List <ProjMod>(); }