using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class App : MonoBehaviour
{
[SerializeField]
private Transform a;
[SerializeField]
private Transform b;
private void Awake()
{
}
private void Start()
{
Debug.Log("start");
Debug.LogFormat("a: {0}", a);
Debug.LogFormat("b: {0}", b);
Vector3 c = b.position - a.position;
Debug.LogFormat("c: {0}", c);
DrawArrow.ForDebug(a.position, b.position, 1000000, Color.red,ArrowType.Default);
}
}
4. 코드
반응형
'산대특 > 게임 클라이언트 프로그래밍' 카테고리의 다른 글
[CatEscape] CatEscape 만들기 (0) | 2024.01.29 |
---|---|
[Shuriken Swipe] 수리검 이동 및 회전 + 도착 지점 계산하기 (0) | 2024.01.27 |
[Chapter4] Swipe Car 만들기 (0) | 2024.01.26 |
[Chapter3] 룰렛 회전시키기 (0) | 2024.01.26 |
GetMouseButton과 GetMouseButtonDown의 차이점 (0) | 2024.01.26 |