mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-16 16:34:41 +01:00
22 lines
415 B
C#
22 lines
415 B
C#
using UnityEngine;
|
|
|
|
namespace MoleMole
|
|
{
|
|
public sealed class CirclePlatform : BasePlatform
|
|
{
|
|
public uint Radius { get; private set; }
|
|
|
|
public CirclePlatform(MonoBasePerpStage stageOwner, uint radius)
|
|
: base(stageOwner)
|
|
{
|
|
Radius = radius;
|
|
}
|
|
|
|
public override Vector3 GetARandomPlace()
|
|
{
|
|
Vector2 vector = Random.insideUnitCircle * Radius;
|
|
return new Vector3(vector.x, 0f, vector.y);
|
|
}
|
|
}
|
|
}
|