コード例 #1
0
 public ProjectileGraphics(ProjectileGraphics pg)
 {
     sprite = pg.sprite; // shares reference as original
     color  = pg.color;
     scale  = pg.scale;
     size   = pg.size;
 }
コード例 #2
0
 /// <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);
 }
コード例 #3
0
 protected ProjectileContainer(ProjectileContainer other)
 {
     stats    = other.stats;
     graphics = other.graphics;
     mods     = ProjMod.CloneList(other.mods);
 }
コード例 #4
0
 public ProjectileContainer(ProjectileStats _stats, ProjectileGraphics _graphics, List <ProjMod> _mods)
 {
     stats    = _stats;
     graphics = _graphics;
     mods     = ProjMod.CloneList(_mods);
 }
コード例 #5
0
 public ProjectileContainer()
 {
     stats    = new ProjectileStats();
     graphics = new ProjectileGraphics();
     mods     = new List <ProjMod>();
 }