/// <summary> /// 动画播放 /// </summary> public void PlayerAni(string animation, Transform transone, Transform transtwo) { Keypress.GetComponent <Animator>().Play(animation); //Keypress.position = Camera.main.ScreenToWorldPoint(Input.mousePosition + new Vector3(0, 0, Camera.main.farClipPlane)); Keypress.GetComponent <BoxCollider>().enabled = true; transone.GetComponent <BoxCollider>().enabled = false; transtwo.GetComponent <BoxCollider>().enabled = false; }
public void EnableTrue() { Keypress.GetComponent <BoxCollider>().enabled = true; }
public void PlayerAni(string animation) { Keypress.GetComponent <Animator>().Play(animation); }