随笔分类 - Unity3D
摘要:当需要判断一物体是否位于当前物体前方扇形范围内时 运用距离差和角度差实现判断 //扇形攻击 实现类型_1 public bool UmbrellaAttact( Transform attacker ,Transform attacked ,float angle, float radius) {
阅读全文
摘要:using System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEngine.AI; public class PlayerMove : MonoBehaviour { public Gam
阅读全文
摘要:
阅读全文