面板介绍说明

image.png

image.png

然后编写代码:

using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using UnityEngine;
public class buildFly : MonoBehaviour
    private Animation ani;
    // Start is called before the first frame update
    void Start()
        ani = this.GetComponent<Animation>();
    // Update is called once per frame
    void Update()