Unity C#:在其他类中访问Spiritcontroller的spiritvalue变量
public class Spritcontroller : MonoBehaviour\n{\n public static int spiritvalue = 25; // 将spiritvalue声明为public static\n private Animator animator;\n // Start is called before the first frame update\n void Start()\n {\n animator = GetComponent
原文地址: https://www.cveoy.top/t/topic/p5aK 著作权归作者所有。请勿转载和采集!