Vector3 direction = transform.position - other.gameObject.transform.position;
//direction = direction * 1000;
//normalized 를 함으로 벡터의 방향은 그대로 두고 크기만 1.0로 맞춰 주는 것
direction = direction.normalized * 3;
Debug.Log("direction :" + direction);
Target.position = new Vector3(direction.x,0, direction.z);
MoveHandler(this, new EventMove() { TargetPos = direction });
2019년 11월 23일 토요일
피드 구독하기:
댓글 (Atom)
git rejected error(feat. cherry-pick)
문제 아무 생각 없이 pull을 받지않고 로컬에서 작업! 커밋, 푸시 진행을 해버렷다. push에선 remote와 다르니 당연히 pull을 진행해라고 하지만 로컬에서 작업한 내용을 백업하지 않고 진행하기에는 부담스럽다(로컬작업 유실 가능성) 해결하려...
-
public class Test : MonoBehaviour { //매출 데이터를 읽어 들이고 Sales 객체 리스트를 반환한다. List<string> list = new List<string> { ...
-
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 ...
-
waitUntil을 추가했음 ## 효과 yield new 로 생기는 가비지콜렉션을 줄일수있다. 참고 https://velog.io/@livelyjuseok/C-Unity-%EC%BD%94%EB%A3%A8%ED%8B%B4-Yield-%EC%B5%9C...
댓글 없음:
댓글 쓰기