在场景创建一个Cube,并添加刚体,如图: 编写脚本:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;[RequireComponent(typeof(Rigidbody))]
public class RibRotate : MonoBehaviour
{//private Vector3 mo…
match函数
目的:查询函数,范围单元格中搜索特定的项,然后返回该项在此区域中的相对位置。
For example:让 match 去【隔壁办公室】找【老张】
Match 回复:【老张】坐在【隔壁办公室】第【四】个座位上
公式:【 mat…