no message
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user