void Start() { // AIpalyer = this.GetPlayerController(0).gameObject; EnemyCollider = new List <Collider>(); Bullet = GameObject.Find("bullet"); pc = this.GetPlayerController(0); joyStick = GameObject.FindObjectOfType <Joystick>(); bulletMove = GetComponent <BulletMove>(); bulletPositions = GameObject.Find("bullet").transform; c = (HeroCharacter)this.GetCharacter(); anim = c.GetComponent <Animator>(); hero = c.hero;//获取到英雄 ps = this.playerState; AR = ps.attributes.GetAttributeValue(AttributeItem.AR); HP = ps.attributes.GetAttributeValue(AttributeItem.HP); MS = ps.attributes.GetAttributeValue(AttributeItem.MS); PAvalue = ps.attributes.GetAttributeValue(AttributeItem.PA); ARvalue = AR.value; }