using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FollowPathMove : MonoBehaviour
{
public Transform[] wayPointArray;
[SerializeField] private Transform PathA;//路径点的父物体
[SerializeField]private Transform playerObj;//移动的物体
private int index;
private Ve服务器托管ctor3 _currentDirection;//当前角色的前进方向
void Start()
{
if(playerObj==null)
{
Debug.LogError("请将移动的角 色放入参数栏");
}
//print(PathA.childCount);//获取子物体的数量
//开辟空间
wayPointArray = new Transform[PathA.childCount];
for(int i=0;i
服务器托管,服务器托管北京服务器托管,服务器租用 http://www.fwqtg.net
相关推荐: 用vue.js写案例——ToDoList待办事项 (步骤和全码解析)
目录 一.准备工作 二.编写各个组件的页面结构 三.实现初始任务列表的渲染 四.新增任务 五.删除任务 六.展示未完成条数 七.切换状态-筛选数据 八.待办事项(全)代码 一.准备工作 在开发“ToDoList”案例之前,需要先完成一些准备工作,包括创建项目、…