コード例 #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);
 }
コード例 #3
0
 public MissileGenerator(BurstAttributes attributes, GameObject sourcePos, WeaponScript owner)
     : base(attributes, sourcePos, owner)
 {
 }