[Unity]벡터의 내적을 활용한 게임요소 구현하기
백터의 내적을 활용한 게임 요소 구현 using System.Collections; using System.Collections.Generic; using UnityEngine; using Vector2 = System.Numerics.Vector2; public class FlashController : MonoBehaviour { public GameObject[] ghostObjectArray; public float moveSpeed = 3f; public float rangeAngle = 25f; public float rangeDistance = 4f; void Update() { PlayerMove(); CheckGhost(); } void PlayerMove() { float x = Inp..