判断方位 假设空间中有这几个坐标,判断一个物体在另一个物体的左边还是右边,前后还是后面 物体空间图 假如以C为中心,判断L是在它的左边还是右边 判断方法 using UnityEngine; using System.Collections; public class GetDirection : MonoBehaviour { public Transform cubeF; public Transform cubeB; public Transform cubeL; public Trans…
using UnityEngine; using System.Linq; using System.Collections.Generic; [RequireComponent(typeof(CharacterMotor))] [RequireComponent(typeof(CharacterStatus))] [RequireComponent(typeof(CharacterAttack))] [RequireComponent(typeof(CharacterInventory))]…