边界Alchat
RPJ商业框架:支付功能,基础移动,游泳爬墙
需要用热更新更新上
动画状态的高级使用
栈:账号
堆:游戏数据
数组长度固定
列表(List)
长度不固定,方便动态增加或者减少
特点:类比排队,但是可以插队,也可以跑路
线性差值(lerp)和球形差值(slerp)
LookRotation和lookAt
寻找父物体有几个子物体
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FollowPathMove : MonoBehaviour
{
public Transform[] wayPointArray;
public Transform PathA;//路径点的父物体
void Start()
{
//print(PathA.childCount);//获取子物体的数量
//开辟空间
wayPointArray = new Transform[PathA.childCount];
for(int i=0;i<wayPointArray.Length;i++)
{
wayPointArray[i]=PathA.GetChild(i);
}
}
// Update is called once per frame
void Update()
{
}
}