上代码:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NewBehaviourScript : MonoBehaviour {
public float speed = 0;
private Animator ani;
// Use this for initialization
void Start () {
ani = transform.gameObject.GetComponent();
ani.speed=speed;
}
// Update is called once per frame
void Update () {
}
}