1. 실행 이미지

 

2. 실행 전
3. 실행 후

 

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. 코드

반응형

+ Recent posts