ing System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TestMyTrail : MonoBehaviour {
public void myTrail;
private float t = 0.033f;
private float tempT = 0;
private float animationIncrement = 0.003f;
问题:
Fields cannot have void type
你定义的myTrail是个函数体,正确写法是
private void myTrail()
{
}