no message

This commit is contained in:
2026-03-19 22:32:52 +00:00
parent 539ffe3cd0
commit 623ad6f509
5 changed files with 92 additions and 2 deletions

View File

@@ -1,3 +1,4 @@
using GAP_ParticleSystemController;
using UnityEngine;
using UnityEngine.UIElements;
@@ -51,4 +52,10 @@ public class UnitMover : MonoBehaviour
}
return destinations;
}
public static Vector3 GetUnitDestinationAroundResource(Vector3 resourcePos)
{
float angle = Random.Range(0, 360);
Vector3 dir = new Vector3(Mathf.Sin(angle * Mathf.Deg2Rad), 0, Mathf.Cos(angle * Mathf.Deg2Rad));
return resourcePos;
}
}