You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
405 B
C#
18 lines
405 B
C#
using D2D.Utilities;
|
|
using D2D.Utils;
|
|
using UnityEngine;
|
|
|
|
namespace D2D.Gameplay
|
|
{
|
|
public class RandomSwiftApplier : MonoBehaviour
|
|
{
|
|
[SerializeField] private float _amplitude;
|
|
[SerializeField] private Vector3 _axes = Vector3.one;
|
|
|
|
private void Start()
|
|
{
|
|
transform.position += DMath.RandomPointInsideBox(_amplitude).Multiply(_axes);
|
|
}
|
|
}
|
|
}
|