public float count = 7; public float radius= 10f; // Start is called before the first frame update void Start() { for (int i = 0; i < 7; i++) { var go = new GameObject(i+"λ²μ§Έ μ μ "); var κ°λ = Mathf.PI*2 / 7 * i; go.transform.position = new Vector3(Mathf.Cos(κ°λ), 0,Mathf.Sin(κ°λ))*radius; } }
κ·Έλ₯ 2νμ΄ 7λ‘ λλ μ νλ©΄ λλκ±Έ
public float count = 7; public float radius= 10f; // Start is called before the first frame update void Start() { for (int i = 0; i < 7; i++) { var go = new GameObject(i+"λ²μ§Έ μ μ "); var κ°λ = Mathf.PI*2 / 7 * i; go.transform.position = new Vector3(Mathf.Cos(κ°λ), 0,Mathf.Sin(κ°λ))*radius; } }
μ΄μ§λ¬Έμ λ무 μ¬κ°νλ°... λ²μ μ무κ΅μ‘μ νμμ±