BCE0048: Type 'UnityEngine.Component' does not support slicing.

来源:互联网 发布:詹姆斯数据预测 编辑:程序博客网 时间:2024/06/04 22:16

解决方法:将animation改成GetComponent.()

 GetComponent.<Animation>()["idle"].speed = Random.Range(0,2.0);    //animation["idle"].speed = Random.Range(0,2.0);
阅读全文
0 0