本文整理汇总了C#中Projectile.GetSystem方法的典型用法代码示例。如果您正苦于以下问题:C# Projectile.GetSystem方法的具体用法?C# Projectile.GetSystem怎么用?C# Projectile.GetSystem使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Projectile
的用法示例。
在下文中一共展示了Projectile.GetSystem方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Beam
public Beam(Vector2 srcCenter, Vector2 destination, int Thickness, Projectile Owner, GameplayObject target)
{
this.Target = target;
this.DamageToggleSound = AudioManager.GetCue("sd_shield_static_1");
if (Owner.isInDeepSpace || Owner.GetSystem() == null)
{
UniverseScreen.DeepSpaceManager.BeamList.Add(this);
}
else
{
this.system = Owner.GetSystem();
this.system.spatialManager.BeamList.Add(this);
}
this.Source = srcCenter;
this.BeamOffsetAngle = 0f;
this.ActualHitDestination = destination;
this.Vertices = new VertexPositionNormalTexture[4];
this.Indexes = new int[6];
this.BeamZ = RandomMath2.RandomBetween(-1f, 1f);
Vector3[] points = HelperFunctions.BeamPoints(srcCenter, destination, (float)Thickness, new Vector2[4], 0, this.BeamZ);
this.UpperLeft = points[0];
this.UpperRight = points[1];
this.LowerLeft = points[2];
this.LowerRight = points[3];
this.FillVertices();
}