本文整理汇总了C#中Angle.PointByRadius方法的典型用法代码示例。如果您正苦于以下问题:C# Angle.PointByRadius方法的具体用法?C# Angle.PointByRadius怎么用?C# Angle.PointByRadius使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Angle
的用法示例。
在下文中一共展示了Angle.PointByRadius方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Move
// Update is called once per frame
public void Move()
{
if ( !Dead && GameController.mode == 3 ) {
DegreeAngle += dirrection * DegreesPerSecond * Time.deltaTime;
transform.position = DegreeAngle.PointByRadius (Radius);
//get radius changes
ChangeRingDirrection = InputController.GetInput ();
Radius += ChangeRingDirrection * RadiusLerpSpeed * Time.deltaTime;
if ( Radius < InitialRadius )
Radius = InitialRadius;
else if ( Radius > FinalRadius )
Radius = FinalRadius;
//draw surrounding circle
}
else {
if ( SurroundingCircle != null ) {
foreach ( GameObject i in SurroundingCircle )
i.GetComponent<LineRenderer>().renderer.enabled = true;
SurroundingCircle = null;
}
}
}
示例2: SpawnObject
public static void SpawnObject( Angle Degree, long mode )
{
for ( long i = 0; i < (int)NumerOfObjectsInPool; i++) {
if ( PoolObjects[i].active == false ) {
PoolObjects[i].transform.position = Degree.PointByRadius ( Menu.Radius );
PoolObjects[i].active = true;
PoolObjects[i].GetComponent<EnemyMovement>().Reset( Menu.Radius, Degree, mode );
break;
}
}
}
示例3: PointByRadius
public static Vector3 PointByRadius(Angle k, float Radius )
{
return k.PointByRadius ( Radius );
}