示例#1
0
 public BurstGenerator(BurstAttributes attributes, GameObject sourcePos, WeaponScript owner)
 {
     _attributes = attributes;
     _sourcePos = sourcePos;
     _ownerWeapon = owner;
     _ownerActor = owner.GetComponentInParent<ActorScript>();
 }
示例#2
0
 public BeamGenerator(BurstAttributes attributes, GameObject sourcePos, WeaponScript owner)
     : base(attributes, sourcePos, owner)
 {
     _renderer = sourcePos.AddComponent<LineRenderer>();
     _renderer.material = new Material(Shader.Find("Self-Illumin/Diffuse"));
     _renderer.SetColors(Color.blue, Color.blue);
     _renderer.SetWidth(0.2f, 0.2f);
     _renderer.SetVertexCount(2);
 }
 public MissileGenerator(BurstAttributes attributes, GameObject sourcePos, WeaponScript owner)
     : base(attributes, sourcePos, owner)
 {
 }